]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/66957
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 2015 01:45:49 +0000 (01:45 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 20 Aug 2015 01:45:49 +0000 (01:45 +0000)
commit70b4d972499180e45c6e8e51cd6b340764139760
treeb65582f3511b73960f319ef3ff55d38d73013c57
parentd05ba3efcce20690ea475037fb40611263a6aaab
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227023 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/friend.c
gcc/cp/search.c
gcc/testsuite/g++.dg/inherit/access9.C [new file with mode: 0644]