diff options
author | Jason Merrill <jason@redhat.com> | 2015-08-19 21:45:49 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2015-08-19 21:45:49 -0400 |
commit | 7ac2c0bd17900b3c0e078479b46de64563a16c9f (patch) | |
tree | b65582f3511b73960f319ef3ff55d38d73013c57 /mkdep | |
parent | 18c4fa8ef0c5e3d705be8f50860b3e58be672256 (diff) | |
download | gcc-7ac2c0bd17900b3c0e078479b46de64563a16c9f.zip gcc-7ac2c0bd17900b3c0e078479b46de64563a16c9f.tar.gz gcc-7ac2c0bd17900b3c0e078479b46de64563a16c9f.tar.bz2 |
re PR c++/66957 (incorrect "is protected within this context" error)
PR c++/66957
* search.c (protected_accessible_p): Remove redundant access_in_type.
Add otype parm instead of walking binfo.
(friend_accessible_p): Check SCOPE itself. Handle class
templates. Pass through otype.
(dfs_accessible_post): Handle all accessibility cases.
(dfs_accessible_pre): New.
(accessible_p): Use it. Don't check protected access here. Pass
decl and otype to dfs_walk.
(member_declared_in_type, dfs_access_in_type_pre): New.
(access_in_type): Use dfs_access_in_type_pre.
* friend.c (add_friend): Fix multiple friends with the same name.
From-SVN: r227023
Diffstat (limited to 'mkdep')
0 files changed, 0 insertions, 0 deletions