https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109682
Arsen Arsenović <arsen at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-07-14 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Keywords| |ice-on-valid-code CC| |arsen at gcc dot gnu.org --- Comment #2 from Arsen Arsenović <arsen at gcc dot gnu.org> --- GCC presumes get_return_object_on_allocation_failure returns the same type as the get_return_object function. it trips there. (conjecture) I think this is valid and should cause a conversion, but that it was left as a TODO. the standard does not state otherwise and both Clang and MSVC appear to attempt a conversion.