]> git.ipfire.org Git - thirdparty/gcc.git/commit
coroutines: co_returns are statements, not expressions.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 26 Jul 2020 14:09:39 +0000 (15:09 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 29 Jul 2020 07:20:48 +0000 (08:20 +0100)
commit412124203ec6dd7cb55798d01e29796c6383ecd8
treea7103456e7a74bd08b2953b792e634b22588f3d5
parent33fb1b3c73c9a33e9d6286bc281934bdfc4d7ae4
coroutines: co_returns are statements, not expressions.

This corrects an error in the CO_RETURN_EXPR tree
class.

gcc/cp/ChangeLog:

* cp-tree.def (CO_RETURN_EXPR): Correct the class
to use tcc_statement.

(cherry picked from commit 608832716e27ca356ee38d14ae30b3ab525884ea)
gcc/cp/cp-tree.def