This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-profiling-branch] typedef-of-enum problem
- From: Olga Golovanevsky <OLGA at il dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 26 Jun 2005 18:07:55 +0300
- Subject: [tree-profiling-branch] typedef-of-enum problem
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 ...
olga