This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31326] New: data members in multiple inheritance
- From: "gdr at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 13:38:51 -0000
- Subject: [Bug c++/31326] New: data members in multiple inheritance
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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