This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/8205: [3.2 regression] using declaration & mulitipleinheritance
- From: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: gcc-gnats at gcc dot gnu dot org
- Date: Fri, 13 Dec 2002 16:04:50 -0600 (CST)
- Subject: Re: c++/8205: [3.2 regression] using declaration & mulitipleinheritance
Upon closer inspection, I believe that this high priority regression is
actually another manifestation of (high priority regression) c++/8117. The
testcase for the latter is
---------------------
struct A { virtual void foo() = 0; };
struct B : A {};
struct C : A {};
struct D : B, C { virtual void foo() {} };
void (D::* p)() = &D::foo; // 'A' is an ambiguous base of 'D'
--------------------
while for the former
--------------------
struct A { int i; };
struct B {};
class E : A, B { public: using A::i; };
void foo() { E().i; } // "`A' is an inaccessible base of `E'"
---------------------
The theory that they are the same is also supported by the fact that both
started to show up somewhere between 2001-11-25 and 2001-12-01.
Regards
Wolfgang
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth