This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34892] New: [4.3 regression] ICE with ellipsis in default template argument
- 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: 20 Jan 2008 21:40:12 -0000
- Subject: [Bug c++/34892] New: [4.3 regression] ICE with ellipsis in default template argument
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid testcase triggers an ICE on mainline:
======================================================
template<int=..., int=0> struct A {};
A<0> a;
======================================================
bug.cc:1: error: expected primary-expression before '...' token
bug.cc:3: internal compiler error: tree check: accessed elt 3 of tree_vec with
2 elts in coerce_template_parms, at cp/pt.c:5312
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE with ellipsis in default template
argument
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=34892