HomePhabricator

Address http://bugs.llvm.org/pr30994 so that a non-friend can properly replaceā€¦

Authored by yaron.keren on Apr 17 2017, 1:51 AM.

Description

Address http://bugs.llvm.org/pr30994 so that a non-friend can properly replace a friend, and a visible friend can properly replace an invisible friend but not vice verse, and definitions are not replaced. This fixes the two FIXME in SemaTemplate/friend-template.cpp.

The code implements Richard Smith suggestion in comment 3 of the PR.

reviewer: Vassil Vassilev

Differential Revision: https://reviews.llvm.org/D31540

llvm-svn: 300443

Details

Committed
yaron.kerenApr 17 2017, 1:51 AM
Differential Revision
D31540: Prefer non-friend to friend in in redeclaration chain
Parents
rG11d9c4f691b6: [BPI] NFC: reorder ifs to bail out earlier
Branches
Unknown
Tags
Unknown