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++/51186] declaring main() with auto but without --std=c++11 gives inconsistent error messages


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


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