[all-commits] [llvm/llvm-project] a06cdb: [clang] Improve deduction of reference typed NTTP
Matheus Izvekov via All-commits
all-commits at lists.llvm.org
Sat Sep 28 20:11:07 PDT 2024
Branch: refs/heads/users/mizvekov/clang-fix-GH73460
Home: https://github.com/llvm/llvm-project
Commit: a06cdbc7a2d010a3f3081b7eb53326aeb7a702b1
https://github.com/llvm/llvm-project/commit/a06cdbc7a2d010a3f3081b7eb53326aeb7a702b1
Author: Matheus Izvekov <mizvekov at gmail.com>
Date: 2024-09-29 (Sun, 29 Sep 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Sema/SemaTemplateDeduction.cpp
M clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
Log Message:
-----------
[clang] Improve deduction of reference typed NTTP
This improves the existing workaround for a core issue introduced in
CWG1770.
When performing template argument deduction for an NNTP which the
parameter side is a reference, instead of dropping the references
for both sides, just make the argument be same reference typed as
the parameter, in case the argument is not already a reference type.
Fixes #73460
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list