Fix the lookup of names used in a friend declaration to not attempt to
re-declare them. This fixes PR6317. Also add the beginnings of an interesting
test case for p1 of [class.friend] which also covers PR6317.

llvm-svn: 97499
2 files changed
tree: 2fe2bf1babb6131d381cb80cb5bebc377ef59d0d
  1. clang/
  2. compiler-rt/
  3. llvm/