I made a stupid mistake (forgot semicolon, too much Python lately), but got an interesting error message from gcc: “expected ‘,’ or ‘;’ before ‘if'”.
I know those error messages provide just an “upper bound” for possible source code, but I’d like to know if there is any construct in C such that “if” token really comes after ‘,’ and not after ‘;’.
After isn’t necessarily immediately after. The error message is more: ‘I’ve just hit an ‘if’ construct. At this point I was expecting either an end to the (previous) statement, or the next item in the list. One of those things must be before this ‘if’, so I’m letting you know’