[Bug c++/47511] New: [C++0x] ICE: unexpected ast of kind template_decl in potential_constant_expression_1, at cp/semantics.c:7711
marc.glisse at normalesup dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 28 12:38:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: marc.glisse@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
More information about the Gcc-bugs
mailing list