This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37288] New: ICE using auto as function return type or parameter
- From: "chris dot fairles at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2008 13:01:41 -0000
- Subject: [Bug c++/37288] New: ICE using auto as function return type or parameter
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Compiling the following with -std=c++0x,
auto foo() { }
int main()
{
foo();
}
gives,
test2.cpp: In function â??auto foo()â??:
test2.cpp:1: internal compiler error: in dependent_type_p, at cp/pt.c:15895
This also gives the same ICE (with -std=c++0x):
void foo(auto i)
{
(void)i;
}
int main()
{
foo(42);
}
Chris
--
Summary: ICE using auto as function return type or parameter
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: chris dot fairles at gmail dot com
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37288