-
Notifications
You must be signed in to change notification settings - Fork 12k
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
[clang] Implement CWG2398 provisional TTP matching to class templates #94981
[clang] Implement CWG2398 provisional TTP matching to class templates #94981
Commits on Aug 28, 2024
-
[clang] Implement CWG2398 provisional TTP matching to class templates
This extends default argument deduction to cover class templates as well. This solves some ambuguity introduced in P0522 regarding how template template parameters are partially ordered, and should reduce the negative impact of enabling `-frelaxed-template-template-args` by default. Given the following example: ```C++ template <class T1, class T2 = float> struct A; template <class T3> struct B; template <template <class T4> class TT1, class T5> struct B<TT1<T5>>; // #1 template <class T6, class T7> struct B<A<T6, T7>>; // #2 template struct B<A<int>>; ``` Prior to P0522, `#2` was picked. Afterwards, this became ambiguous. This patch restores the pre-P0522 behavior, `#2` is picked again.
Configuration menu - View commit details
-
Copy full SHA for 2729c98 - Browse repository at this point
Copy the full SHA 2729c98View commit details
Commits on Sep 5, 2024
-
Merge remote-tracking branch 'origin/main' into users/mizvekov/clang-…
…cwg2398-ttp-matches-class-template
Configuration menu - View commit details
-
Copy full SHA for 530f884 - Browse repository at this point
Copy the full SHA 530f884View commit details -
Update clang/lib/AST/ASTContext.cpp
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9c307db - Browse repository at this point
Copy the full SHA 9c307dbView commit details -
Update clang/lib/Sema/SemaTemplateDeduction.cpp
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c414b9c - Browse repository at this point
Copy the full SHA c414b9cView commit details -
Update clang/lib/Sema/SemaTemplateDeduction.cpp
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 653f6fa - Browse repository at this point
Copy the full SHA 653f6faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 09440f8 - Browse repository at this point
Copy the full SHA 09440f8View commit details
Commits on Sep 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for b9900e4 - Browse repository at this point
Copy the full SHA b9900e4View commit details -
Configuration menu - View commit details
-
Copy full SHA for ae27685 - Browse repository at this point
Copy the full SHA ae27685View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2ace043 - Browse repository at this point
Copy the full SHA 2ace043View commit details -
Merge remote-tracking branch 'origin/main' into users/mizvekov/clang-…
…cwg2398-ttp-matches-class-template
Configuration menu - View commit details
-
Copy full SHA for 5275f0d - Browse repository at this point
Copy the full SHA 5275f0dView commit details
Commits on Sep 7, 2024
-
Update clang/include/clang/AST/ASTContext.h
Co-authored-by: cor3ntin <corentinjabot@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 446f916 - Browse repository at this point
Copy the full SHA 446f916View commit details -
Configuration menu - View commit details
-
Copy full SHA for 861d1bc - Browse repository at this point
Copy the full SHA 861d1bcView commit details