[all-commits] [llvm/llvm-project] d0223b: [Clang] Static and explicit object member function...

cor3ntin via All-commits all-commits at lists.llvm.org
Wed Jun 5 07:51:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0223b9ffc40146fb4a948ebfa652dc95499b7ba
      https://github.com/llvm/llvm-project/commit/d0223b9ffc40146fb4a948ebfa652dc95499b7ba
  Author: cor3ntin <corentinjabot at gmail.com>
  Date:   2024-06-05 (Wed, 05 Jun 2024)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/include/clang/AST/ExprCXX.h
    M clang/include/clang/Sema/Overload.h
    M clang/lib/Sema/SemaExpr.cpp
    M clang/lib/Sema/SemaOverload.cpp
    M clang/test/CXX/drs/cwg1xx.cpp
    M clang/test/CXX/drs/cwg26xx.cpp
    A clang/test/CXX/drs/cwg2771.cpp
    M clang/test/CodeGenCXX/cxx2b-deducing-this.cpp
    M clang/test/SemaCXX/cxx2b-deducing-this.cpp
    M clang/www/cxx_dr_status.html
    M clang/www/cxx_status.html

  Log Message:
  -----------
  [Clang] Static and explicit object member functions with the same parameter-type-lists (#93430)

Implement P2797.

Because taking the address of an explicit object member function results
in a function pointer, a call expression where the id-expression is an
explicit object member is made to behave consistently with that model.

This change forces clang to perform overload resolution in the presence
of an id-expression of the form `(&Foo::bar)(args...)`, which we
previously failed to do consistently.



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