This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51186] declaring main() with auto but without --std=c++11 gives inconsistent error messages
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 17 Nov 2011 21:00:34 +0000
- Subject: [Bug c++/51186] declaring main() with auto but without --std=c++11 gives inconsistent error messages
- Auto-submitted: auto-generated
- References: <bug-51186-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51186
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-11-17 21:00:34 UTC ---
Author: jason
Date: Thu Nov 17 21:00:30 2011
New Revision: 181455
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=181455
Log:
PR c++/51186
* decl.c (grokdeclarator): Improve C++98 trailing return diagnostic.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto27.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/trailing2.C