public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/39934]  New: Union member incorrectly disallowed
@ 2009-04-27 20:30 terra at gnome dot org
  2009-04-27 20:49 ` [Bug c++/39934] " paolo dot carlini at oracle dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: terra at gnome dot org @ 2009-04-27 20:30 UTC (permalink / raw)
  To: gcc-bugs

struct A {
  const int x;
  int y;
};

union U {
  const int x;
  A a;
};


g++ 4.3.1 says...

vvv.C:8: error: member `A U::a' with copy assignment operator not allowed in
union

As far as I can see, struct A does not have a copy assignment operator
at all.

Sun's Forte 12 is happy with the code for what that is worth.


-- 
           Summary: Union member incorrectly disallowed
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: terra at gnome dot org
  GCC host triplet: x86_64-suse-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39934


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

end of thread, other threads:[~2010-09-16 18:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-27 20:30 [Bug c++/39934] New: Union member incorrectly disallowed terra at gnome dot org
2009-04-27 20:49 ` [Bug c++/39934] " paolo dot carlini at oracle dot com
2009-11-03  5:45 ` redhatter at gentoo dot org
2009-11-03 13:33 ` redi at gcc dot gnu dot org
2009-11-03 13:47 ` terra at gnome dot org
2009-11-03 14:21 ` redi at gcc dot gnu dot org
2009-11-03 17:44 ` terra at gnome dot org
2009-11-03 17:49 ` paolo dot carlini at oracle dot com
2009-11-03 18:10 ` redi at gcc dot gnu dot org
2009-11-04 14:41 ` redi at gcc dot gnu dot org
2009-11-04 15:28 ` redi at gcc dot gnu dot org
2010-09-16 18:54 ` dherring at tentpost 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).