[clang] [Sema] Avoid excessive desuraging in template deduction (PR #100144)

2024-07-23 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov edited https://github.com/llvm/llvm-project/pull/100144 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Avoid excessive desuraging in template deduction (PR #100144)

2024-07-23 Thread Ilya Biryukov via cfe-commits
@@ -688,10 +688,7 @@ DeduceTemplateSpecArguments(Sema &S, TemplateParameterList *TemplateParams, // FIXME: To preserve sugar, the TST needs to carry sugared resolved // arguments. - ArrayRef PResolved = - TP->getCanonicalTypeInternal() - ->castAs() -

[clang] [Sema] Avoid excessive desuraging in template deduction (PR #100144)

2024-07-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 363e036ac002d5af4bb82e303052b806a98086a1 20c9e54bc2e30864592b74db6ed1eeeddeacca50 --e

[clang] [Sema] Avoid excessive desuraging in template deduction (PR #100144)

2024-07-23 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov created https://github.com/llvm/llvm-project/pull/100144 Not for submission yet. Will eventually aim to fix #100095. The current approach should not be correct as it would have *too* much sugar in turn. We should also make sure the final substitution arguments