This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49129] confusing diagnostic for missing semi-colon after member template
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Mar 2018 11:31:46 +0000
- Subject: [Bug c++/49129] confusing diagnostic for missing semi-colon after member template
- Auto-submitted: auto-generated
- References: <bug-49129-4@http.gcc.gnu.org/bugzilla/>
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();
^~
;