diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-17 16:55:29 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2024-08-24 19:54:53 +0100 |
commit | f4915e6c4cd42e7d6f397dc36fab507cc47dad05 (patch) | |
tree | 44abf2a7f4f5be7f42be9748f915c2832b6804a3 /gcc/dwarf2codeview.cc | |
parent | a0b431033c307982123abbff752045cfe7eda47f (diff) | |
download | gcc-f4915e6c4cd42e7d6f397dc36fab507cc47dad05.zip gcc-f4915e6c4cd42e7d6f397dc36fab507cc47dad05.tar.gz gcc-f4915e6c4cd42e7d6f397dc36fab507cc47dad05.tar.bz2 |
c++, coroutines: Allow convertible get_return_on_allocation_fail [PR109682].
We have been requiring the get_return_on_allocation_fail() call to have the
same type as the ramp. This is not intended by the standard, so relax that
to allow anything convertible to the ramp return.
PR c++/109682
gcc/cp/ChangeLog:
* coroutines.cc
(cp_coroutine_transform::build_ramp_function): Allow for cases where
get_return_on_allocation_fail has a type convertible to the ramp
return type.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/pr109682.C: New test.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
Diffstat (limited to 'gcc/dwarf2codeview.cc')
0 files changed, 0 insertions, 0 deletions