public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31326]  New: data members in multiple inheritance
@ 2007-03-23 13:39 gdr at gcc dot gnu dot org
  2007-03-23 13:46 ` [Bug c++/31326] " gdr at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-03-23 13:39 UTC (permalink / raw)
  To: gcc-bugs

G++ incorrectly rejects the following valid code

struct A { int x; };
struct B { int x; };
struct C : virtual A, virtual B { int x; };
struct D : virtual A, virtual B, virtual C { };

int main()
{
   D* d = new D();
   d->x = 42;
}


-- 
           Summary: data members in multiple inheritance
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: rejects-valid
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gdr at gcc dot gnu dot org
  GCC host triplet: platform independent


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


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

end of thread, other threads:[~2007-03-23 18:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-23 13:39 [Bug c++/31326] New: data members in multiple inheritance gdr at gcc dot gnu dot org
2007-03-23 13:46 ` [Bug c++/31326] " gdr at gcc dot gnu dot org
2007-03-23 15:48 ` pinskia at gcc dot gnu dot org
2007-03-23 18:33 ` gdr at cs dot tamu dot edu

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).