José Fonseca <jfons...@vmware.com> writes: > What you guys feel about anonymous unions? > > I happened to committed some code with anonymous unions, but it > caused gcc to choke when -std=c99 option is specified, which is only > specified with automake but scons. > > After some search, it looks like anonymous unions are not part of > C99, but are part of C++ and will reportedly be part of C1X [1]. I > think all major compilers support it.
I'd vote against it. I remember hitting an issue porting some of my own code that used anonymous unions. Further, a downstream app I work on needs to support AIX's native build environment; I haven't checked, but that toolchain always gives me grief && so I doubt it supports anonymous unions. -tom
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev