-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[Clang] Add warning message for C++17 alias template CTAD #133806
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
dd97898
c48c4a6
01789a4
42a08fb
5299a58
df703ea
eec39e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9896,7 +9896,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 | ||
|
||
| ? diag::warn_cxx17_compat_ctad_for_alias_templates | ||
| : diag::ext_ctad_for_alias_templates_cxx20); | ||
| LookupTemplateDecl = AliasTemplate; | ||
| auto UnderlyingType = AliasTemplate->getTemplatedDecl() | ||
| ->getUnderlyingType() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.