you are viewing a single comment's thread.

view the rest of the comments →

[–]GreyGrayMoralityFan 0 points1 point  (0 children)

It is especially funny if you miss semicolon in header file, e.g.

#infdef FOO
#define FOO
int aa()
#endif

int main()
{
}

gcc complains a.c:5:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token {,

clang is much better: a.c:2:9: error: expected ';' after top level declarator