[Bug c++/37288] New: ICE using auto as function return type or parameter
chris dot fairles at gmail dot com
gcc-bugzilla@gcc.gnu.org
Sat Aug 30 13:03:00 GMT 2008
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
More information about the Gcc-bugs
mailing list