llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.32k stars 11.69k forks source link

[clang] Overloaded method satisfies `std::is_member_function_pointer` in concepts #97768

Open sigasigasiga opened 3 months ago

sigasigasiga commented 3 months ago

I have two very similar examples with the erroneous behavior:

  1. id-expression of an overloaded method is classified as a member function pointer https://godbolt.org/z/dGqME87xT
  2. Member pointer of an overloaded method is classified as a member function pointer https://gcc.godbolt.org/z/9Kah9q9zx

These similar examples are probably caused by the same problem, so one issue for both of them

llvmbot commented 3 months ago

@llvm/issue-subscribers-clang-frontend

Author: Egor Bychin (sigasigasiga)

I have two very similar examples with the erroneous behavior: 1. `id-expression` of an overloaded method is classified as a member function pointer https://godbolt.org/z/dGqME87xT 2. Member pointer of an overloaded method is classified as a member function pointer https://gcc.godbolt.org/z/9Kah9q9zx These similar examples are probably caused by the same problem, so one issue for both of them
sigasigasiga commented 3 months ago

Probably related to https://github.com/llvm/llvm-project/issues/97753