The following invalid testcase triggers an ICE on mainline: ========================================= template<int,void> struct A {};
template<int N> struct A<N,0> {}; ========================================= bug.cc:1: error: 'void' is not a valid type for a template constant parameter bug.cc:3: error: partial specialization 'A<N, <expression error> >' does not specialize any template arguments bug.cc:3: internal compiler error: tree check: expected tree_list, have error_mark in process_partial_specialization, at cp/pt.c:2737 Please submit a full bug report, [etc.] The ICE happens in the same function as PR 28737, but in a different position. This is probably fallout from PR 27668. -- Summary: [4.2 regression] ICE specializing invalid template class Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: minor Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org BugsThisDependsOn: 27668 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28738