[all-commits] [llvm/llvm-project] adc2b0: [clang] Improve deduction of reference typed NTTP

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Sat Sep 28 17:54:57 PDT 2024


  Branch: refs/heads/users/mizvekov/clang-fix-GH73460
  Home:   https://github.com/llvm/llvm-project
  Commit: adc2b02c4529edb15d9dc0df55b44abb9e8f4acc
      https://github.com/llvm/llvm-project/commit/adc2b02c4529edb15d9dc0df55b44abb9e8f4acc
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2024-09-28 (Sat, 28 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