re PR c++/37967 (ICE with function returning auto)
authorJakub Jelinek <jakub@redhat.com>
Fri, 31 Oct 2008 21:33:47 +0000 (22:33 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 31 Oct 2008 21:33:47 +0000 (22:33 +0100)
commit4f48b9c1a5fa185bf85768d4748de3077d503a53
tree2c499200514eac0068bd5944e2a21587fe24c3ff
parent0a3098bba15a5f03c017683cad6aa81427865d00
re PR c++/37967 (ICE with function returning auto)

PR c++/37967
* decl.c (grokdeclarator): Diagnose auto function decl without
late return type and late return type function decl where type
is not auto.

* g++.dg/cpp0x/auto8.C: New test.

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