[Bug c++/109682] coroutines: ICE in morph_fn_to_coro on wrong return type for get_return_object_on_allocation_failure
arsen at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jul 14 21:26:21 GMT 2024
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.
More information about the Gcc-bugs
mailing list