diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-09-26 20:57:03 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-09-26 20:57:03 +0000 |
commit | fc9cd61f2372cd8f43f0d92be14fa75778de6be6 (patch) | |
tree | 0206fae25b7862555981ad63fbb2d03fdfd11602 /lib/Parse/ParseDeclCXX.cpp | |
parent | e7c8cb6b2728aa98258288d221b09bc66cc05543 (diff) |
Simplify the handling of non-dependent friend class template
specializations such as:
friend class std::vector<int>;
by using the same code path as explicit specializations, customized to
reference an existing ClassTemplateSpecializationDecl (or build a new
"undeclared" one).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDeclCXX.cpp')
-rw-r--r-- | lib/Parse/ParseDeclCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseDeclCXX.cpp b/lib/Parse/ParseDeclCXX.cpp index bcf332bf30..d381e3e974 100644 --- a/lib/Parse/ParseDeclCXX.cpp +++ b/lib/Parse/ParseDeclCXX.cpp @@ -690,7 +690,7 @@ void Parser::ParseClassSpecifier(tok::TokenKind TagTokKind, TemplateId->getTemplateArgLocations(), TemplateId->RAngleLoc, Attr); - } else if (TUK == Action::TUK_Reference || TUK == Action::TUK_Friend) { + } else if (TUK == Action::TUK_Reference) { TypeResult = Actions.ActOnTemplateIdType(TemplateTy::make(TemplateId->Template), TemplateId->TemplateNameLoc, |