[clang] [clang] fix alias ctad producing function template with no template parameters (PR #195303)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Fri May 1 10:52:39 PDT 2026
================
@@ -1551,6 +1559,7 @@ VarTemplatePartialSpecializationDecl::Create(
SourceLocation IdLoc, TemplateParameterList *Params,
VarTemplateDecl *SpecializedTemplate, QualType T, TypeSourceInfo *TInfo,
StorageClass S, ArrayRef<TemplateArgument> Args) {
+ assert(!Params->empty() && "template with no template parameters");
----------------
erichkeane wrote:
Ah, huh, TemplateDecl is doesn't actually have a deserialized-ctor, so yeah, thats problematic...
This is super unfortunate. And yeah, I don't want to mess with CreateDeserialized everywhere.
https://github.com/llvm/llvm-project/pull/195303
More information about the cfe-commits
mailing list