[Bug c++/28107] Incomplete type in struct added to global namespace
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28107 --- Comment #5 from Jonathan Wakely --- Yes, this is invalid, a member definition such as "union B b;" does not declare a nested type, that would be: struct A { union B; B b; };
[Bug c++/28107] Incomplete type in struct added to global namespace
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28107 Paolo Carlini changed: What|Removed |Added Status|NEW |RESOLVED CC|gcc-bugs at gcc dot gnu.org| Resolution|--- |INVALID --- Comment #4 from Paolo Carlini --- Let's close this.
[Bug c++/28107] Incomplete type in struct added to global namespace
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28107 --- Comment #3 from Paolo Carlini --- Likewise does current ICC and OracleStudio and rather recent clang. I guess this could use some further triage.
[Bug c++/28107] Incomplete type in struct added to global namespace
--- Comment #2 from pcarlini at suse dot de 2007-08-17 15:37 --- FWIW, Comeau gives very similar errors: "ComeauTest.c", line 3: error: incomplete type is not allowed union B b; ^ "ComeauTest.c", line 6: error: tag kind of class or struct is incompatible with declaration of union "B" (declared at line 3) struct B; ^ -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28107
[Bug c++/28107] Incomplete type in struct added to global namespace
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-06-20 19:39 --- Confirmed. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2006-06-20 19:39:46 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28107