This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/47436] New: Variadic base-specifier-list of union rejected
- From: "schaub.johannes at googlemail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 24 Jan 2011 14:36:37 +0000
- Subject: [Bug c++/47436] New: Variadic base-specifier-list of union rejected
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47436
Summary: Variadic base-specifier-list of union rejected
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: schaub.johannes@googlemail.com
GCC doesn't accept this
template<typename ...T> union A : T... { };
A<> a;
It complains at parse time of "A" about "error: derived union 'A<T>' invalid".
However it doesn't know at that time whether or not the union will have bases
yet when instantiated.