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