[Bug c++/49129] confusing diagnostic for missing semi-colon after member template
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Mar 16 11:31:00 GMT 2018
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();
^~
;
More information about the Gcc-bugs
mailing list