[Bug c++/47436] New: Variadic base-specifier-list of union rejected

schaub.johannes at googlemail dot com gcc-bugzilla@gcc.gnu.org
Mon Jan 24 14:47:00 GMT 2011


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.



More information about the Gcc-bugs mailing list