This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/31326] data members in multiple inheritance
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2007 18:33:36 -0000
- Subject: [Bug c++/31326] data members in multiple inheritance
- References: <bug-31326-1000@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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