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]

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



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