Re: [PATCH] c++: Fix up ptr.~PTR () handling [PR96721]

2020-08-24 Thread Jason Merrill via Gcc-patches
On 8/24/20 5:34 PM, Jakub Jelinek wrote: Hi! The following testcase is miscompiled, because build_trivial_dtor_call handles the case when instance is a pointer by adding a clobber to what the pointer points to (which is desirable e.g. for delete) rather than the pointer itself. That is I think

[PATCH] c++: Fix up ptr.~PTR () handling [PR96721]

2020-08-24 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase is miscompiled, because build_trivial_dtor_call handles the case when instance is a pointer by adding a clobber to what the pointer points to (which is desirable e.g. for delete) rather than the pointer itself. That is I think always desirable behavior for references, b