-
specifier-qualifier-list
Code:
typedef struct s
{
int* true;
int* false;
int* next;
int quad;
char place[5];
}ETYPE;
typedef union
{
char id[10];
ETYPE eval;
} YYSTYPE;
extern YYSTYPE yylval;
This gives the error expected specifier-qualifier list before ETYPE
and
Code:
typedef union
{
char id[10];
struct ETYPE eval;
} YYSTYPE;
extern YYSTYPE yylval;
gives the error: Field 'eval' has incomplete type
Can someone give the correct syntax please?
-
The sure thing is:
Code:
typedef union
{
char id[10];
struct s eval;
} YYSTYPE;
extern YYSTYPE yylval;
Since struct ETYPE has no meaning, either struct s or just ETYPE
-
Please switch over to this thread