public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47436] New: Variadic base-specifier-list of union rejected
@ 2011-01-24 14:47 schaub.johannes at googlemail dot com
  2011-08-22 22:57 ` [Bug c++/47436] " daniel.kruegler at googlemail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: schaub.johannes at googlemail dot com @ 2011-01-24 14:47 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-09-22 22:47 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-24 14:47 [Bug c++/47436] New: Variadic base-specifier-list of union rejected schaub.johannes at googlemail dot com
2011-08-22 22:57 ` [Bug c++/47436] " daniel.kruegler at googlemail dot com
2011-09-22 18:12 ` [Bug c++/47436] [C++0x] " paolo.carlini at oracle dot com
2011-09-22 18:16 ` daniel.kruegler at googlemail dot com
2011-09-22 19:20 ` schaub.johannes at googlemail dot com
2011-09-22 19:28 ` redi at gcc dot gnu.org
2011-09-22 21:15 ` paolo.carlini at oracle dot com
2011-09-22 22:17 ` jason at gcc dot gnu.org
2011-09-22 23:10 ` paolo.carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).