The following invalid testcase triggers an ICE on mainline: ===================================================== template<int... N> struct A { static void foo() { int i = N; } };
void bar() { A<0>::foo(); } ===================================================== bug.cc: In static member function 'static void A<N>::foo() [with int ...N = 0]': bug.cc:11: instantiated from here bug.cc:5: internal compiler error: in gimplify_expr, at gimplify.c:6108 Please submit a full bug report, [etc.] -- Summary: [4.3 regression] ICE with invalid use of parameter pack Product: gcc Version: 4.3.0 Status: UNCONFIRMED Keywords: ice-on-invalid-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=34919