https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116020
Bug ID: 116020 Summary: Incorrect treatment of (this void) parameter Product: gcc Version: 14.1.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fchelnokov at gmail dot com Target Milestone: --- This C++23 program struct A { void f(this void) {} }; int main() { A{}.f(); } is accepted by Clang, but GCC complains > error: no matching function for call to 'A::f()' > note: candidate expects -1 arguments, 0 provided Online demo: https://gcc.godbolt.org/z/hs6f8jv4h Related discussion: https://stackoverflow.com/q/78773894/7325599