diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-06-28 21:43:01 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-06-28 21:43:01 +0000 |
commit | 0963017dcbc32176c79a251c3ab23bc35ac784e5 (patch) | |
tree | 22f32143d4d25187a37943d78a861f6827250766 /lib/Parse/Parser.cpp | |
parent | 9fc5b007726ef8a2fa923a95f047a51477704121 (diff) |
Support the use of "=delete" and "=default" with delayed template
parsing. Fixes <rdar://problem/11700604>.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159380 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 5b5d52b223..bec6dd717c 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -959,6 +959,7 @@ Decl *Parser::ParseFunctionDefinition(ParsingDeclarator &D, // In delayed template parsing mode, for function template we consume the // tokens and store them for late parsing at the end of the translation unit. if (getLangOpts().DelayedTemplateParsing && + Tok.isNot(tok::equal) && TemplateInfo.Kind == ParsedTemplateInfo::Template) { MultiTemplateParamsArg TemplateParameterLists(Actions, TemplateInfo.TemplateParams->data(), |