[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:44:38 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:
Ah :) I was just blaming my bad memory. I just got back from a week off, so my brain isn't particularly caught up yet :D
https://github.com/llvm/llvm-project/pull/133806
More information about the cfe-commits
mailing list