aboutsummaryrefslogtreecommitdiff
path: root/libgomp/target.c
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-07-19 13:48:12 -0400
committerPatrick Palka <ppalka@redhat.com>2024-07-19 13:48:12 -0400
commit2ee70c9f83a1033f2897a35bff9e9ffdd03cc651 (patch)
treee9d43cb50e11f204e2bc37c8aeb59389ead29c96 /libgomp/target.c
parent9116490c1b03dac18f10e42df03731a3aed0b4e9 (diff)
downloadgcc-2ee70c9f83a1033f2897a35bff9e9ffdd03cc651.zip
gcc-2ee70c9f83a1033f2897a35bff9e9ffdd03cc651.tar.gz
gcc-2ee70c9f83a1033f2897a35bff9e9ffdd03cc651.tar.bz2
c++: xobj fn call without obj [PR115783]
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 'libgomp/target.c')
0 files changed, 0 insertions, 0 deletions