This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/35813] New: ICE with partial specialization of variadic templates
- From: "sultansharem at gmx dot ch" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2008 13:06:20 -0000
- Subject: [Bug c++/35813] New: ICE with partial specialization of variadic templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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