More fallout from the variadic templates on mainline: =========================================================== template<typename..., typename> struct A { enum { N }; };
A<int,int> a; =========================================================== 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:3: error: template argument 1 is invalid bug.cc:3: internal compiler error: tree check: expected class 'type', have 'exceptional' (error_mark) in tsubst_decl, at cp/pt.c:7889 Please submit a full bug report, [etc.] Btw, why do we have to emit "error: template argument 1 is invalid" four times? -- 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=31432