http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51630
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-12-21 05:08:32 UTC --- The syntax of your example was OK, so -fsyntax-only doesn't give errors. If -fsyntax-errors only isn't what you're looking for, don't use it. It's not clear what you're asking for, maybe you want -Wfatal-errors