[clang] [clang-tools-extra] [Clang] Add a builtin that deduplicate types into a pack (PR #106730)
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 11 10:47:44 PDT 2025
================
@@ -316,6 +330,13 @@ TemplateNameKind Sema::isTemplateName(Scope *S,
}
}
+ if (isPackProducingBuiltinTemplateName(Template) &&
+ S->getTemplateParamParent() == nullptr) {
+ Diag(Name.getBeginLoc(), diag::err_builtin_pack_outside_template);
+ // Recover by returning the template, even though we would never be able to
+ // substitute it.
+ }
----------------
ilya-biryukov wrote:
Done.
https://github.com/llvm/llvm-project/pull/106730
More information about the cfe-commits
mailing list