In fact it is allowed in C, but some old lite-C compiler version did not support it, but as far as I know, this was fixed long since.

Probably, you have a problem in the code before, like an open bracket or open #ifdef. This throws an error on the last line when it does not contain the closing element.