This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32115] New: [4.3 regression] ICE on with default argument in variadic template
- 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: 27 May 2007 23:00:48 -0000
- Subject: [Bug c++/32115] New: [4.3 regression] ICE on with default argument in variadic template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE on mainline:
====================================================
template<typename ...T, int = 0> struct A {};
A<int> a;
====================================================
bug.cc:1: error: parameter pack 'T' must be at the end of the template
parameter list
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:5056
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE on with default argument in
variadic template
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=32115