[Bug c++/31326] data members in multiple inheritance
gdr at cs dot tamu dot edu
gcc-bugzilla@gcc.gnu.org
Fri Mar 23 18:33:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list