[Bug c++/32115] New: [4.3 regression] ICE on with default argument in variadic template
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sun May 27 23:00:00 GMT 2007
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
More information about the Gcc-bugs
mailing list