This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
static anonymous union within class
- From: Mad Hatter <slokus at yahoo dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 21 Jul 2002 16:20:18 -0700 (PDT)
- Subject: 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