[Bug c++/51186] declaring main() with auto but without --std=c++11 gives inconsistent error messages
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 17 21:08:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51186
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |jason at gcc dot gnu.org
Resolution| |FIXED
Target Milestone|--- |4.7.0
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-17 21:05:00 UTC ---
Fixed to say
x.C:3:14: error: trailing return type only available with -std=c++11 or
-std=gnu++11
More information about the Gcc-bugs
mailing list