At a guess, what you're missing is a new-line following the final closing brace. It's reasonable for the compiler to warn about that (the C and C++ standards say it gives undefined behavior), but the text of the message is misleading about the source of the problem.