[clang] [Clang] Add warning message for C++17 alias template CTAD (PR #133806)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 2 06:40:54 PDT 2025
================
@@ -9920,7 +9920,9 @@ QualType Sema::DeduceTemplateSpecializationFromInitializer(
if (auto *AliasTemplate = dyn_cast_or_null<TypeAliasTemplateDecl>(
TemplateName.getAsTemplateDecl())) {
Diag(Kind.getLocation(),
- diag::warn_cxx17_compat_ctad_for_alias_templates);
+ getLangOpts().CPlusPlus20
----------------
erichkeane wrote:
Thanks! I'd vastly prefer we hold off on this patch until that is merged and rebase it with that. I hadn't realized that 132348 hadn't been merged yet.
https://github.com/llvm/llvm-project/pull/133806
More information about the cfe-commits
mailing list