This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37967] [4.4 regression] ICE with function returning auto
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2008 21:35:14 -0000
- Subject: [Bug c++/37967] [4.4 regression] ICE with function returning auto
- References: <bug-37967-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2008-10-31 21:35 -------
Subject: Bug 37967
Author: jakub
Date: Fri Oct 31 21:33:47 2008
New Revision: 141502
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=141502
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/auto8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37967