From 8d1eb8e410f18bd20f8bb0ac68826bce9c32e635 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sun, 5 Feb 2017 16:05:20 +0100 Subject: Update GLM to latest (nw) --- 3rdparty/glm/test/bug/bug_ms_vec_static.cpp | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 3rdparty/glm/test/bug/bug_ms_vec_static.cpp (limited to '3rdparty/glm/test/bug/bug_ms_vec_static.cpp') diff --git a/3rdparty/glm/test/bug/bug_ms_vec_static.cpp b/3rdparty/glm/test/bug/bug_ms_vec_static.cpp new file mode 100644 index 00000000000..8bc2fadc225 --- /dev/null +++ b/3rdparty/glm/test/bug/bug_ms_vec_static.cpp @@ -0,0 +1,31 @@ +#include + +#if GLM_HAS_ALIGNED_TYPE +struct vec2; + +struct _swizzle +{ + char _buffer[1]; +}; + +struct vec2 +{ + GLM_CONSTEXPR_CTOR vec2() : + x(0), y(0) + {} + + union + { + struct { float x, y; }; + struct { _swizzle xx; }; + }; +}; +#endif + +// Visual C++ has a bug generating the error: fatal error C1001: An internal error has occurred in the compiler. +// vec2 Bar; + +int main() +{ + return 0; +} -- cgit v1.2.3-70-g09d2