More fallout from the variadic templates on mainline:

===========================================================
template<typename...> struct A;

template<char> struct A<> {};

template<typename T, typename... U> struct A<T, U...> : A<U...> {};

A<int> a;
===========================================================

bug.cc:3: error: template parameters not used in partial specialization:
bug.cc:3: error:         '<anonymous>'
bug.cc: In instantiation of 'A<int>':
bug.cc:7:   instantiated from here
bug.cc:1: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]


-- 
           Summary: [4.3 regression] ICE with variadic template and broken
                    specialization
           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=31439

Reply via email to