This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20330] Constructor fails to find base class in specialization
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Mar 2005 09:37:44 -0000
- Subject: [Bug c++/20330] Constructor fails to find base class in specialization
- References: <20050305080042.20330.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From igodard at pacbell dot net 2005-03-05 09:37 -------
Ref comment #4: yes, using "::" clears the diagnostic, but why does the member
in one base collide with the direct reference to another explict base? Isn't the
base name itself in the derived's scope, superceding the names in the base
scopes? That is, from baz are foo and its member bar in the same scope (which is
apparently what the compiler thinks), or is foo in baz's scope while the member
bar is in baz::foo's as seems more reasonable?
(Yes, I know, reasonableness is non-standard :-)
Ivan
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20330