static anonymous union within class
Mad Hatter
slokus@yahoo.com
Sun Jul 21 22:56:00 GMT 2002
Hi,
I'm using gcc-3.1 and noticed that it permits static
anonymous unions within a struct which the C++
standard
disallows, e.g.:
struct {
static union {float f; int i;};
char c[4];
}a, b;
This does not draw an error or warning even with -ansi
-pedantic -Wall -W.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com
More information about the Gcc
mailing list