This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 27 Dec 2008 23:12:52 -0000
- Subject: [Bug c++/38646] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following invalid code snippet triggers an ICE since GCC 4.3.0:
=============================================
template<int...> struct A;
template<int... N> struct A<N..., N...>
{
template<typename> struct B;
template<typename T> struct B<T*> {};
};
=============================================
bug.cc:3: error: parameter pack argument 'N ...' must be at the end of the
template argument list
bug.cc:7: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in template_class_depth, at cp/pt.c:314
Please submit a full bug report, [etc.]
--
Summary: [4.3/4.4 regression] ICE with invalid specialization of
variadic template
Product: gcc
Version: 4.4.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=38646