[clang] [Clang] Add warning message for C++17 alias template CTAD (PR #133806)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 2 06:46:01 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
----------------
Sirraide 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
I merged it a few hours ago so you’re good ;Þ
https://github.com/llvm/llvm-project/pull/133806
More information about the cfe-commits
mailing list