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
* [Bug c++/31326] data members in multiple inheritance 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 ` 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 2 siblings, 0 replies; 4+ messages in thread From: gdr at gcc dot gnu dot org @ 2007-03-23 13:46 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from gdr at gcc dot gnu dot org 2007-03-23 13:45 ------- . -- gdr at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2007-03-23 13:45:59 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31326 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/31326] data members in multiple inheritance 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 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2007-03-23 15:48 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2007-03-23 15:48 ------- Maybe this is not obvious to me why this is valid code, why is this valid code? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31326 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/31326] data members in multiple inheritance 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 2 siblings, 0 replies; 4+ messages in thread From: gdr at cs dot tamu dot edu @ 2007-03-23 18:33 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from gdr at cs dot tamu dot edu 2007-03-23 18:33 ------- Subject: Re: data members in multiple inheritance "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes: | Maybe this is not obvious to me why this is valid code, why is this | valid code? paragrpah 10.2/2 from the C++ standard. d->x should resolve unambiously to d->C::x, because C::x hides A::x and B::x. -- Gaby -- 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).