This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]