]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/51186 (declaring main() with auto but without --std=c++11 gives inconsisten...
authorJason Merrill <jason@redhat.com>
Thu, 17 Nov 2011 21:00:30 +0000 (16:00 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 17 Nov 2011 21:00:30 +0000 (16:00 -0500)
commitbb94892a9a0adf8e824881fec03f570464384b31
tree5af81fafefe9ab2cc29cc58c313fb344a16e5cd8
parentf6546dbc89bb0c2a4f0667101c9c72c1bb90b129
re PR c++/51186 (declaring main() with auto but without --std=c++11 gives inconsistent error messages)

PR c++/51186
* decl.c (grokdeclarator): Improve C++98 trailing return diagnostic.

From-SVN: r181455
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/auto27.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/trailing2.C