From 9134d7904a2b186bf5382c0a10a6970dd403afe0 Mon Sep 17 00:00:00 2001 From: Christophe Riccio Date: Wed, 4 Jan 2017 23:41:35 +0100 Subject: [PATCH] Simplier repro case for #594 --- test/bug/bug_ms_vec_static.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bug/bug_ms_vec_static.cpp b/test/bug/bug_ms_vec_static.cpp index eab23e22..e2e75708 100644 --- a/test/bug/bug_ms_vec_static.cpp +++ b/test/bug/bug_ms_vec_static.cpp @@ -7,8 +7,8 @@ struct _swizzle struct vec2 { - constexpr vec2(float x, float y) : - x(x), y(y) + constexpr vec2() : + x(0), y(0) {} union @@ -19,7 +19,7 @@ struct vec2 }; // Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler. -vec2 const Bar(1.f, 1.f); +vec2 Bar; int main() {