]> granicus.if.org Git - clang/commit
PR12585: When processing a friend template inside a class template, don't
authorRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 22 Apr 2012 02:13:50 +0000 (02:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Sun, 22 Apr 2012 02:13:50 +0000 (02:13 +0000)
commit6e21b16ab226959341b85e16060fd81f71cee628
treee9c999c5b86132685f230ee4ea11b36e32471fa7
parentbc356d0aa9c25c0831fa0ae9830b5e5e4be23b0a
PR12585: When processing a friend template inside a class template, don't
pretend there was no previous declaration -- that can lead us to injecting
a class template (with no access specifier) into a class scope. Instead,
just avoid the problematic checks.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155303 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaTemplate.cpp
test/PCH/cxx-friends.cpp
test/PCH/cxx-friends.h
test/SemaTemplate/friend-template.cpp