$ cat test.cpp template <typename T> void foo(T x) { }
void bar() { decltype(foo<int>) dt; } $ g++ -std=gnu++0x -c test.cpp test2.cpp: In function 'void bar()': test2.cpp:9: internal compiler error: in finish_decltype_type, at cp/semantics.c:4193 This fails on mingw 4.3.0 and fresh svn on linux. -- Summary: internal compiler error: in finish_decltype_type Product: gcc Version: 4.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bruck dot michael at googlemail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38620