From IRC we got the following code sample:
// vim: ft=c
void main() {
struct foo {
int a, b;
};
struct foo bar = { 1, 2 };
printf( "%s\n", bar.b );
}
This fails because the compiler currently doesn’t allow structures to be declared by themselves inside a function.
The following does work:
// vim: ft=c
void main() {
struct foo {
int a, b;
} bar = { 1, 2 };
printf( "%s\n", bar.b );
}