This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49129] confusing diagnostic for missing semi-colon after member template


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();
         ^~
         ;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]