The following valid code snippet triggers an ICE on trunk: ================================= struct A { template<int> void foo(); };
template<int N> struct B : A { B() { foo<N>(); } }; B<0> b; ================================= bug.cc: In constructor 'B<N>::B() [with int N = 0]': bug.cc:11:6: instantiated from here bug.cc:8:9: internal compiler error: in build_base_path, at cp/class.c:270 Please submit a full bug report, [etc.] -- Summary: [4.6 regression] ICE with template hierarchy Product: gcc Version: 4.6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44017