This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

static anonymous union within class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]