glm/test/bug/bug_ms_vec_static.cpp
2017-01-04 23:41:35 +01:00

28 lines
327 B
C++

struct vec2;
struct _swizzle
{
char _buffer[1];
};
struct vec2
{
constexpr vec2() :
x(0), y(0)
{}
union
{
struct { float x, y; };
struct { _swizzle xx; };
};
};
// 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;
}