Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anonymous unions in Clang #474

Closed
0----0 opened this issue Jan 18, 2016 · 2 comments
Closed

Anonymous unions in Clang #474

0----0 opened this issue Jan 18, 2016 · 2 comments
Assignees
Milestone

Comments

@0----0
Copy link

0----0 commented Jan 18, 2016

It seems like GLM by default won't give me GLM_HAS_ANONYMOUS_UNION on anything but an MS compiler, but if I override it with

#include <glm/detail/setup.hpp>
#undef GLM_HAS_ANONYMOUS_UNION
#define GLM_HAS_ANONYMOUS_UNION 1

it seems to work fine.

Are anonymous unions supported in Clang, now? If so, could they be enabled by default, or with a #define switch?

@hrehfeld
Copy link

Also,

https://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html

sounds like gcc supports them as well (in C++11).

@Groovounet Groovounet added this to the GLM 0.9.8 milestone May 5, 2016
@Groovounet Groovounet self-assigned this May 5, 2016
@Groovounet
Copy link
Member

This issue is resolved in master branch for GLM 0.9.8 release.

Thanks for reporting,
Christophe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants