File: bug_ms_vec_static.cpp

package info (click to toggle)
glm 0.9.9.8%2Bds-9
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 8,152 kB
  • sloc: cpp: 38,114; sh: 31; makefile: 23
file content (31 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include <glm/glm.hpp>

#if GLM_CONFIG_ANONYMOUS_STRUCT == GLM_ENABLE
struct vec2;

struct _swizzle
{
	char _buffer[1];
};

struct vec2
{
	GLM_CONSTEXPR 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;
}