aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-tree.h
diff options
context:
space:
mode:
authorPatrick Palka <ppalka@redhat.com>2024-01-30 10:44:56 -0500
committerPatrick Palka <ppalka@redhat.com>2024-01-30 10:44:56 -0500
commit0857a00fe3226db8801384743b6d44353dcac9da (patch)
treed05cbfc17c31b84beb751de92f38e0270367f5e5 /gcc/c/c-tree.h
parentaf37bef86199e50368cbfbc97befe0622a07f12f (diff)
downloadgcc-0857a00fe3226db8801384743b6d44353dcac9da.zip
gcc-0857a00fe3226db8801384743b6d44353dcac9da.tar.gz
gcc-0857a00fe3226db8801384743b6d44353dcac9da.tar.bz2
c++: duplicated side effects of xobj arg [PR113640]
We miscompile the below testcase because keep_unused_object_arg thinks the object argument of an xobj member function is unused, and so it ends up duplicating the argument's side effects. PR c++/113640 gcc/cp/ChangeLog: * call.cc (keep_unused_object_arg): Punt for an xobj member function. gcc/testsuite/ChangeLog: * g++.dg/cpp23/explicit-obj-lambda14.C: New test. Reviewed-by: Jason Merrill <jason@redhat.com>
Diffstat (limited to 'gcc/c/c-tree.h')
0 files changed, 0 insertions, 0 deletions