diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2022-04-18 16:23:30 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2022-04-28 13:55:09 +0100 |
commit | 7b96274a340bc0e9bcaef9baff3a44ec2f12c3df (patch) | |
tree | 3c128f69639489b6f60785c8bb5b3a42b6042bc2 /gcc/gcov-io.cc | |
parent | 6cae3bb65c873a2191613f7888fe949553a21f9e (diff) | |
download | gcc-7b96274a340bc0e9bcaef9baff3a44ec2f12c3df.zip gcc-7b96274a340bc0e9bcaef9baff3a44ec2f12c3df.tar.gz gcc-7b96274a340bc0e9bcaef9baff3a44ec2f12c3df.tar.bz2 |
c++, coroutines: Improve check for throwing final await [PR104051].
We check that the final_suspend () method returns a sane type (i.e. a class
or structure) but, unfortunately, that check has to be later than the one
for a throwing case. If the use returns some nonsensical type from the
method, we need to handle that in the checking for noexcept.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
PR c++/104051
gcc/cp/ChangeLog:
* coroutines.cc (coro_diagnose_throwing_final_aw_expr): Handle
non-target expression inputs.
gcc/testsuite/ChangeLog:
* g++.dg/coroutines/pr104051.C: New test.
Diffstat (limited to 'gcc/gcov-io.cc')
0 files changed, 0 insertions, 0 deletions