The following invalid testcase triggers an ICE on mainline: =============================== template<int> void foo() { new int(; } ===============================
bug.cc: In function 'void foo()': bug.cc:3: error: expected primary-expression before ';' token bug.cc:3: internal compiler error: tree check: expected tree_list, have error_mark in any_type_dependent_arguments_p, at cp/pt.c:13017 Please submit a full bug report, [etc.] The problem is similar to PR28593, and so is the fix, which I'll be posting soon. -- Summary: [4.2 regression] ICE on invalid use of new Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, error-recovery, monitored Severity: normal Priority: P3 Component: c++ AssignedTo: reichelt at gcc dot gnu dot org ReportedBy: reichelt at gcc dot gnu dot org BugsThisDependsOn: 28593 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29291