This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29291] New: [4.2 regression] ICE on invalid use of new
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Sep 2006 20:49:16 -0000
- Subject: [Bug c++/29291] New: [4.2 regression] ICE on invalid use of new
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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