! > I would like to know what ANSI C has to say about the anonymous struct
! > used in the following declaration:
! > typedef union {
! > int tag;
! > struct {
! > int i;
! > int j;
! > };
! > struct {
! > double x;
! > };
! > } anon_t;
! > In particular, is this standard C? I have seen it used but can find no
! > references to this on the Web or in K&R, 2nd Edition.
!
! The C standard clearly allows this declaration, The tagless structure
! type cannot be referred to outside the declaration of which it is a
! part.
Doug is confused. While the standard does allow a struct declaration
with no tag inside another struct as Doug says, it does *not* allow a
struct declaration without a following declarator
-Larry Jones
Life's a lot more fun when you're not responsible for your actions. -- Calvin
--