[all-commits] [llvm/llvm-project] 12f428: [clang] member pointer class qualification fix

Matheus Izvekov via All-commits all-commits at lists.llvm.org
Thu May 29 19:58:20 PDT 2025


  Branch: refs/heads/users/mizvekov/fix-type-qualifier-memberptr
  Home:   https://github.com/llvm/llvm-project
  Commit: 12f4283d7692b44757103e15146b863cd3e8b023
      https://github.com/llvm/llvm-project/commit/12f4283d7692b44757103e15146b863cd3e8b023
  Author: Matheus Izvekov <mizvekov at gmail.com>
  Date:   2025-05-29 (Thu, 29 May 2025)

  Changed paths:
    M clang/lib/Sema/SemaTemplateDeduction.cpp
    M clang/test/SemaCXX/member-pointer.cpp

  Log Message:
  -----------
  [clang] member pointer class qualification fix

This fixes a regression introduced in https://github.com/llvm/llvm-project/pull/130537

When deducing member pointers class, ignore top level qualifiers on the argument side,
since the class portion of a member pointer is a nested-name-specifier, and
these just nominate an entity.

Qualifiers on the parameter side are fine since deduction
allows the parameter side to be more qualified, and these
qualifiers won't be part of the result.

Since this regression was never released, there are no release notes.



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