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++/35813] New: ICE with partial specialization of variadic templates


code,

template <int N, typename... P> struct i { typedef i t; };

template <typename I> struct n;

template <typename... E, int N> struct n<i<N, E...> > : i<N+1, E...> { };

template <typename... E> struct n<i<sizeof...(E), E...> > : i<sizeof...(E),
E...> { };

typedef i<1, char>  t;
typedef n<t>::t     x;

leads to "internal compiler error: tree check: expected tree_vec, have
type_pack_expansion in tsubst_copy_and_build, at cp/pt.c:10829"


-- 
           Summary: ICE with partial specialization of variadic templates
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sultansharem at gmx dot ch


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35813


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