We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5299a58 commit df703eaCopy full SHA for df703ea
clang/lib/Sema/SemaInit.cpp
@@ -9919,10 +9919,7 @@ QualType Sema::DeduceTemplateSpecializationFromInitializer(
9919
if (!Template) {
9920
if (auto *AliasTemplate = dyn_cast_or_null<TypeAliasTemplateDecl>(
9921
TemplateName.getAsTemplateDecl())) {
9922
- Diag(Kind.getLocation(),
9923
- getLangOpts().CPlusPlus20
9924
- ? diag::compat_cxx20_ctad_for_alias_templates
9925
- : diag::compat_pre_cxx20_ctad_for_alias_templates);
+ DiagCompat(Kind.getLocation(), diag_compat::ctad_for_alias_templates);
9926
LookupTemplateDecl = AliasTemplate;
9927
auto UnderlyingType = AliasTemplate->getTemplatedDecl()
9928
->getUnderlyingType()
0 commit comments