I am woundering the following code:
#include <stdio.h>
#include <stdlib.h>
int main(void)
{
struct test1
{
struct test2
{
struct test3
{
enum TokenType
{
COMMA_TOKEN, EOF_TOKEN,
} token_value;
} b;
} c;
};
struct test2 hsd;
hsd.b.token_value = 2;
return 0;
}
Should the scope of strut test2, test3 and the enum being within the struct test1? But the compiler didn't report any error, by the way the compiler the MinGW GCC.