summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaTemplateInstantiate.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-01-25 02:14:59 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-01-25 02:14:59 +0000
commit928be491e0e9b1742b9c5f79a41ddb8cc8887012 (patch)
treef6dd3c51a9db0a4ee54fe37f5f5e114eade9eb4a /clang/lib/Sema/SemaTemplateInstantiate.cpp
parent000b14e796dc2651df708381e9cebf10d8e7eb51 (diff)
downloadbcm5719-llvm-928be491e0e9b1742b9c5f79a41ddb8cc8887012.tar.gz
bcm5719-llvm-928be491e0e9b1742b9c5f79a41ddb8cc8887012.zip
Fix PR11848: decree that an alias template contains an unexpanded parameter pack
iff its substitution contains an unexpanded parameter pack. This has the effect that we now reject declarations such as this (which we used to crash when expanding): template<typename T> using Int = int; template<typename ...Ts> void f(Int<Ts> ...ints); The standard is inconsistent on how this case should be treated. llvm-svn: 148905
Diffstat (limited to 'clang/lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r--clang/lib/Sema/SemaTemplateInstantiate.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaTemplateInstantiate.cpp b/clang/lib/Sema/SemaTemplateInstantiate.cpp
index 2b96a1c7447..e183f1f1c1d 100644
--- a/clang/lib/Sema/SemaTemplateInstantiate.cpp
+++ b/clang/lib/Sema/SemaTemplateInstantiate.cpp
@@ -1510,7 +1510,7 @@ ParmVarDecl *Sema::SubstParmVarDecl(ParmVarDecl *OldParm,
// FIXME: When OldParm is a parameter pack and NewParm is not a parameter
// pack, we actually have a set of instantiated locations. Maintain this set!
if (OldParm->isParameterPack() && !NewParm->isParameterPack()) {
- // Add the new parameter to
+ // Add the new parameter to the instantiated parameter pack.
CurrentInstantiationScope->InstantiatedLocalPackArg(OldParm, NewParm);
} else {
// Introduce an Old -> New mapping
OpenPOWER on IntegriCloud