The following invalid code snippet triggers an ICE on mainline: ============================================== template<int... N> void foo() { sizeof...N(); }
void bar() { foo<0>(); } ============================================== bug1.cc: In function 'void foo()': bug1.cc:3: error: 'N' cannot be used as a function bug1.cc: In function 'void foo() [with int N = #'argument_pack_select' not supported by dump_expr#<expression error>]': bug1.cc:8: instantiated from here bug1.cc:3: error: '0' cannot be used as a function bug1.cc:3: internal compiler error: tree check: expected tree_vec, have error_mark in tsubst_copy_and_build, at cp/pt.c:10528 Please submit a full bug report, [etc.] The broken diagnostic "'argument_pack_select' not supported by dump_expr" is already tracked in PR33118. -- Summary: [4.3 regression] ICE with sizeof for invalid argument pack 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=33496