summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-12-05 00:58:33 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-12-05 00:58:33 +0000
commitd091dc179dbd1060029268043f0bad1d7a87fc00 (patch)
treee4c7be91cc07eaed2d2c62c52e5c65ee3a025ac8 /clang/lib/Sema/SemaTemplate.cpp
parentb9a69f6129735552d8d5caf32c5a1a30e934c1dc (diff)
downloadbcm5719-llvm-d091dc179dbd1060029268043f0bad1d7a87fc00.tar.gz
bcm5719-llvm-d091dc179dbd1060029268043f0bad1d7a87fc00.zip
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. llvm-svn: 196443
Diffstat (limited to 'clang/lib/Sema/SemaTemplate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplate.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaTemplate.cpp b/clang/lib/Sema/SemaTemplate.cpp
index 3e55ec90ad0..b5b2f0dbedc 100644
--- a/clang/lib/Sema/SemaTemplate.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud