Commit 28dc79bc by Jason Merrill

search.c (lookup_base_r): Don't clear is_non_public just because we found a friendly scope.

        * search.c (lookup_base_r): Don't clear is_non_public just because
        we found a friendly scope.

From-SVN: r50143
parent 07f521fc
// Test that a base doesn't get special rights to convert to itself.
struct A {
void f ();
};
struct B: private A { };
B b;
void A::f ()
{
A* ap = &b; // { dg-error "base|inherit" "" }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment