This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34050] New: [4.3 regression] ICE derived classes and variadic templates
- 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: 10 Nov 2007 17:14:57 -0000
- Subject: [Bug c++/34050] New: [4.3 regression] ICE derived classes and variadic templates
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The following code snippet triggers an ICE on mainline:
===========================================
struct A {};
template<typename... T> struct B : T...
{
B() : T()... {}
};
B<A> b;
===========================================
bug.cc: In constructor 'B<T>::B() [with T = A]':
bug.cc:8: instantiated from here
bug.cc:5: internal compiler error: tree check: expected tree_list, have
void_type in tsubst_initializer_list, at cp/pt.c:14981
Please submit a full bug report, [etc.]
I guess, the code is invalid, but I'm not sure.
--
Summary: [4.3 regression] ICE derived classes and variadic
templates
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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=34050