https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49129
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2011-07-24 20:52:32 |2018-3-16 CC| |dmalcolm at gcc dot gnu.org --- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> --- Since GCC 6.1 the error is slightly better, although it suggests putting the semi-colon in the wrong place: tm.cc:7:3: error: a storage class can only be specified for objects and functions static I f(); ^~~~~~ tm.cc:7:9: error: expected ';' before 'I' static I f(); ^~ ;