Browse Source

Updated the message: Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler.

Christophe Riccio 9 years ago
parent
commit
1df01f6b10
1 changed files with 2 additions and 6 deletions
  1. 2 6
      test/bug/bug_ms_vec_static.cpp

+ 2 - 6
test/bug/bug_ms_vec_static.cpp

@@ -1,12 +1,8 @@
 #define GLM_FORCE_SWIZZLE
 #include <glm/vec2.hpp>
 
-struct Foo
-{
-	static glm::vec2 Bar;
-};
-
-glm::vec2 Foo::Bar = glm::vec2(1.f, 1.f);
+// Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler.
+glm::vec2 const Bar(1.f, 1.f);
 
 int main()
 {