This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-profiling-branch] typedef-of-enum problem
Olga Golovanevsky <OLGA@il.ibm.com> writes:
| I am trying to define the following enum and typedef of it
| in ipa-prop.h file on [tree-profiling-branch]:
|
| enum enum_name
| {
| ...
| };
|
| typedef enum enum_name enum_name_t;
|
| and use this typedef in tree-flow.h:
|
| #include "ipa-prop.h"
|
| ...
|
| struct van_ann_d GTY (())
| {
| ...
| enum_name_t *GTY ((skip)) name;
| }
|
| The error I am getting is:
|
| build/gengtype
| ../../gcc/gcc/tree-flow.h:234: unidentified type `enum_name_t'
| make[1]: *** [s-gtype] Error 1
|
| However, when struct is used instead of enum, or enum is used directly,
| the compilation passes successfully.
|
| Looks like a problem for me, but may be I am missing something ...
http://gcc.gnu.org/ml/gcc/2003-03/msg01265.html
(if you could make it a patch...)
-- Gaby