Don't assume friended C++ method decls have qualifiers
authorReid Kleckner <reid@kleckner.net>
Wed, 17 Dec 2014 23:40:46 +0000 (23:40 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 17 Dec 2014 23:40:46 +0000 (23:40 +0000)
commitaf9bf59ba901e4a6367fb262454557d1edc27e93
tree16e0ac6fd2c5174c01ba94a891b8fc4c5a70983a
parent969902b43b0c028d49dba8ee0b443351fa0453cb
Don't assume friended C++ method decls have qualifiers

There are a few cases where unqualified lookup can find C++ methods.
Unfortunately, none of them seem to have illegal access paths, so I
can't excercise the diagnostic source range code that I am changing
here.

Fixes PR21851, which was a crash on valid.

llvm-svn: 224471
clang/lib/Sema/SemaAccess.cpp
clang/test/SemaCXX/friend.cpp