diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-04 00:28:23 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-04 00:28:23 +0000 |
commit | b28fcac460a31d6d033e23357ed4b3aeb4e30dbc (patch) | |
tree | 1ab075db7820fd8591e1f8dad72cd2e29b39d019 /lib/Sema/SemaTemplate.cpp | |
parent | 20b2dbd23164eab75cca70b32efd47cab9949e53 (diff) |
Fix several crash-on-invalids when using template-ids that aren't
simple-template-ids (eg, 'operator+<int>') in weird places.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196333 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 7b901d2df8..eb10758bc1 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2910,7 +2910,7 @@ TemplateNameKind Sema::ActOnDependentTemplateName(Scope *S, case UnqualifiedId::IK_OperatorFunctionId: Result = TemplateTy::make(Context.getDependentTemplateName(Qualifier, Name.OperatorFunctionId.Operator)); - return TNK_Dependent_template_name; + return TNK_Function_template; case UnqualifiedId::IK_LiteralOperatorId: llvm_unreachable( |