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++/32115] New: [4.3 regression] ICE on with default argument in variadic template


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


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