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: r50141
This commit is contained in:
parent
e43cae6719
commit
8fdc55170e
|
@ -1,5 +1,8 @@
|
|||
2002-02-28 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* search.c (lookup_base_r): Don't clear is_non_public just because
|
||||
we found a friendly scope.
|
||||
|
||||
* decl.c (finish_function): Only warn about missing return
|
||||
statement with -Wreturn-type.
|
||||
|
||||
|
|
|
@ -201,8 +201,9 @@ lookup_base_r (binfo, base, access, within_current_scope,
|
|||
&& !within_current_scope
|
||||
&& is_friend (BINFO_TYPE (binfo), current_scope ()))
|
||||
{
|
||||
/* Do not clear is_non_public here. If A is a private base of B, A
|
||||
is not allowed to convert a B* to an A*. */
|
||||
within_current_scope = 1;
|
||||
is_non_public = 0;
|
||||
}
|
||||
|
||||
if (same_type_p (BINFO_TYPE (binfo), base))
|
||||
|
|
Loading…
Reference in New Issue