[Bug c++/32252] New: [4.3 regression] ICE with variadic templates and arrays
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jun 7 22:24:00 GMT 2007
The following (IMHO valid) code snippet triggers an ICE on mainline:
==================================================
int x[5];
template<int M, int N, int (&... p)[N]> struct A;
template<int M> struct A<M,5,x> {};
A<0,5,x> a;
==================================================
bug.cc:7: internal compiler error: tree check: accessed elt 2 of tree_vec with
1 elts in tsubst, at cp/pt.c:8528
Please submit a full bug report, [etc.]
--
Summary: [4.3 regression] ICE with variadic templates and arrays
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, 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=32252
More information about the Gcc-bugs
mailing list