Created attachment 33384 [details] small testcase Suppose that three classes are related by inheritance (B ---> A : B inherits from A) as follows: C ---private--> B ---public--> A Then C can publish A via using B::A; I think that the correct behaviour is to reject such a program.
Agreed, the attached code (repeated below) should be rejected. class A {}; class B : public A {}; class C : B { public: using B::A; }; int main() { A *p = new C; }
*** Bug 113286 has been marked as a duplicate of this bug. ***