This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/32252] New: [4.3 regression] ICE with variadic templates and arrays


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]