]> granicus.if.org Git - clang/commit
Put friend decls in the correct context.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 25 Apr 2013 20:12:36 +0000 (20:12 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 25 Apr 2013 20:12:36 +0000 (20:12 +0000)
commit11dc6347bb01b766cf4f357d707ff789cba9114b
treee1b3ee6e4581284590792ee6589dfc0efdd0317c
parenta2338bc4c2887937478d302901fb41a53e14e6d6
Put friend decls in the correct context.

When we find a friend declaration we have to skip transparent contexts for doing
lookups, but we should not skip them when inserting the new decl if the lookup
found nothing.

Fixes PR15841.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180571 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDeclCXX.cpp
test/SemaCXX/linkage2.cpp