]> granicus.if.org Git - clang/commit
Rework the Parse-Sema interaction for friends to better support friend
authorDouglas Gregor <dgregor@apple.com>
Sat, 26 Sep 2009 06:47:28 +0000 (06:47 +0000)
committerDouglas Gregor <dgregor@apple.com>
Sat, 26 Sep 2009 06:47:28 +0000 (06:47 +0000)
commitd85bea2affdd59d83d1be7d24b97f436484c3625
treec54ffce5ad16d80e08ccbb6ebfd047206c93ac1a
parent74e3c92aa3eb1750ac2eb89994046eb69db39100
Rework the Parse-Sema interaction for friends to better support friend
class templates. We now treat friend class templates much more like
normal class templates, except that they still get special name lookup
rules. Fixes PR5057 and eliminates a bunch of spurious diagnostics in
<iostream>.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82848 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticParseKinds.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/Parse/ParseDeclCXX.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaTemplate.cpp
test/CXX/class/class.friend/p2.cpp
test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.type.elab/p3.cpp
test/CXX/temp/temp.decls/temp.friend/p3.cpp
test/Parser/cxx-friend.cpp
test/SemaTemplate/friend-template.cpp [new file with mode: 0644]