This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
gengtype and typedef to enum
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Geoff Keating <geoffk at geoffk dot org>
- Cc: gcc at gcc dot gnu dot org
- Date: 19 Mar 2003 23:43:20 +0100
- Subject: gengtype and typedef to enum
- Organization: Integrable Solutions
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