This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/31326] data members in multiple inheritance



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]