diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-05 00:58:33 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-12-05 00:58:33 +0000 |
commit | cf1b10a63b988bdc4c2c58457b096599577537c2 (patch) | |
tree | 1774c57408cd3cb1f8db6016f00cd74fe65e8716 /lib/Sema/SemaTemplate.cpp | |
parent | 11c616279561e7450cf7ea738dc0c64b33bdeba7 (diff) |
Reject template-ids containing literal-operator-ids that have a dependent
nested-name-specifier, rather than crashing. (In fact, reject all
literal-operator-ids that have a non-namespace nested-name-specifier). The
grammar doesn't allow these in some cases, and in other cases does allow them
but instantiation will always fail.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196443 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 3e55ec90ad..b5b2f0dbed 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2914,8 +2914,7 @@ TemplateNameKind Sema::ActOnDependentTemplateName(Scope *S, return TNK_Function_template; case UnqualifiedId::IK_LiteralOperatorId: - llvm_unreachable( - "We don't support these; Parse shouldn't have allowed propagation"); + llvm_unreachable("literal operator id cannot have a dependent scope"); default: break; |