[Bug c++/35331] New: [4.3/4.4 regression] ICE with invalid specialization of variadic template
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Feb 23 19:26:00 GMT 2008
The following invalid code snippet triggers an ICE on mainline and 4.3 branch:
====================================================
template<typename...> struct A;
template<typename...T> struct A<T*>
{
friend void foo();
};
====================================================
bug.cc:3: error: parameter packs not expanded with `...':
bug.cc:3: note: 'T'
bug.cc:4: error: parameter packs not expanded with `...':
bug.cc:4: note: 'T'
bug.cc:5: internal compiler error: tree check: expected record_type or
union_type or qual_union_type, have error_mark in
maybe_add_class_template_decl_list, at cp/class.c:2540
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=35331
More information about the Gcc-bugs
mailing list