Hi guys
I found another compiler problem:
The following won't compile:
typedef struct {
float val;
} t_Val;
t_Val V;
But it will when specifying a name in 'struct' namespace. (why is this required?)
typedef struct t_Val {
float val;
} t_Val;
typedef struct
Re: typedef struct
From this good explanation it should be clear:
https://stackoverflow.com/questions/167 ... efinitions
We use our own uCxx translation from C++ to C, so we do not accept anonymous structures in typedef. We will think to fix it.
https://stackoverflow.com/questions/167 ... efinitions
We use our own uCxx translation from C++ to C, so we do not accept anonymous structures in typedef. We will think to fix it.
Re: typedef struct
Hi there
Yes I read that too
But it never happned to me that any compiler would require the syntax: typedef struct T {} T;
Anyway I guess there are more important things.
Yes I read that too
But it never happned to me that any compiler would require the syntax: typedef struct T {} T;
Anyway I guess there are more important things.
Re: typedef struct
This is out of C standards. This is compiler specific. Some are more tolerant, some are not. We will check if it is hard to fix