Re: [committed] c++: Fix ICE with weird copy assignment operator [PR114572]

2024-04-08 Thread Jason Merrill
On 4/5/24 03:35, Jakub Jelinek wrote: Hi! While ctors/dtors don't return anything (undeclared void or this pointer on arm) and copy assignment operators normally return a reference to *this, it isn't invalid to return uselessly some class object which might need destructing, but the OpenMP claus

[committed] c++: Fix ICE with weird copy assignment operator [PR114572]

2024-04-05 Thread Jakub Jelinek
Hi! While ctors/dtors don't return anything (undeclared void or this pointer on arm) and copy assignment operators normally return a reference to *this, it isn't invalid to return uselessly some class object which might need destructing, but the OpenMP clause handling code wasn't expecting that.