More fallout from the variadic templates on mainline: =========================================================== template<typename..., typename> struct A { static int i; };
A<int, int> a; A<char,int> b; =========================================================== bug.cc:1: error: parameter pack '<template-parameter-1-1>' must be at the end of the template parameter list bug.cc: In instantiation of 'A<int, int>': bug.cc:6: instantiated from here bug.cc:2: error: template argument 1 is invalid bug.cc:2: error: template argument 1 is invalid bug.cc:3: error: template argument 1 is invalid bug.cc: In instantiation of 'A<char, int>': bug.cc:7: instantiated from here bug.cc:2: error: template argument 1 is invalid bug.cc:2: error: template argument 1 is invalid bug.cc:3: error: template argument 1 is invalid bug.cc:3: internal compiler error: in finish_member_declaration, at cp/semantics.c:2270 Please submit a full bug report, [etc.] This is very similar to PR31432, but needs two instantiations of the template to trigger an ICE. -- Summary: [4.3 regression] ICE with invalid parameter pack for template struct Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, 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=31433