diff options
author | Patrick Palka <ppalka@redhat.com> | 2024-07-19 13:48:12 -0400 |
---|---|---|
committer | Patrick Palka <ppalka@redhat.com> | 2024-07-19 13:48:12 -0400 |
commit | 2ee70c9f83a1033f2897a35bff9e9ffdd03cc651 (patch) | |
tree | e9d43cb50e11f204e2bc37c8aeb59389ead29c96 /gcc/config/xm-linux.h | |
parent | 9116490c1b03dac18f10e42df03731a3aed0b4e9 (diff) |
The code path for rejecting an object-less call to a non-static member
function should also consider xobj member functions (so that we correctly
reject the below calls with a "cannot call member function without object"
diagnostic).
PR c++/115783
gcc/cp/ChangeLog:
* call.cc (build_new_method_call): Generalize METHOD_TYPE
check to DECL_OBJECT_MEMBER_FUNCTION_P.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/explicit-obj-diagnostics11.C: New test.
Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/config/xm-linux.h')
0 files changed, 0 insertions, 0 deletions