Re: [PATCH] c++: duplicated side effects of xobj arg [PR113640]

2024-01-30 Thread Jason Merrill
On 1/30/24 10:09, Patrick Palka wrote: Bootstrapped and regtested on x86_64-pc-linu-xgnu, does this look OK for trunk? OK. -- >8 -- We miscompile the below testcase because keep_unused_object_arg duplicates the side effects of a (by-value) object argument of a xobj member function.

[PATCH] c++: duplicated side effects of xobj arg [PR113640]

2024-01-30 Thread Patrick Palka
Bootstrapped and regtested on x86_64-pc-linu-xgnu, does this look OK for trunk? -- >8 -- We miscompile the below testcase because keep_unused_object_arg duplicates the side effects of a (by-value) object argument of a xobj member function. PR c++/113640 gcc/cp/ChangeLog: *