A
Ark
Hello NG,
Consider the following snippet:
struct x_t x;
struct x_t {
int y;
};
Different compilers disagree (in "strict ANSI" mode) whether it is
legal. What is the truth (in C90 and C99 and anywhere in between)?
C99 seems to list UB case when the complete definition is not in the
same scope as declaration, but in this case it is...
Thank you,
Ark
Consider the following snippet:
struct x_t x;
struct x_t {
int y;
};
Different compilers disagree (in "strict ANSI" mode) whether it is
legal. What is the truth (in C90 and C99 and anywhere in between)?
C99 seems to list UB case when the complete definition is not in the
same scope as declaration, but in this case it is...
Thank you,
Ark