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]

Should typedef'd unnamed structs be supported?


One of the GCC extensions is to allow unnamed structs and unions as
fields of a structure. Question now is, if that should also apply
to typedefs, i.e:

typedef struct {
  int z;
} type_z;

struct B {
  int i;
  type_z;
};

Is supposed to work. 

Philipp

-- 
Philipp Thomas <pthomas at suse dot de>
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nuremberg, Germany


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