http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47511
Summary: [C++0x] ICE: unexpected ast of kind template_decl in potential_constant_expression_1, at cp/semantics.c:7711 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: marc.gli...@normalesup.org namespace N { template <typename T> bool g( T ) { return true; } struct A { }; } template <class T> void f(const T&) { N::A x; g(x) ; } $ c++ -std=gnu++0x -c a.cc a.cc: In function 'void f(const T&)': a.cc:9:7: sorry, unimplemented: unexpected ast of kind template_decl a.cc:9:7: internal compiler error: in potential_constant_expression_1, at cp/semantics.c:7711