This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32252] New: [4.3 regression] ICE with variadic templates and arrays
- 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: 7 Jun 2007 22:24:03 -0000
- Subject: [Bug c++/32252] New: [4.3 regression] ICE with variadic templates and arrays
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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