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]

gengtype and typedef to enum


Hi,

  I discovered by the hard way (2 hours chasing the "problem") that the
gengtype machinery does not recognize typedef to enums.  I.e., given

    typedef enum number { zero, one } number;

     struct foo GTY(())
     {
       number n;              // #1
     };

gengtype complains about use of "nunmber" at line "#1" as being
unindentified.   Is this a feature?

Thanks,

-- Gaby


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