coroutines: co_returns are statements, not expressions.
authorIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Jun 2020 14:09:39 +0000 (15:09 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Fri, 5 Jun 2020 18:27:21 +0000 (19:27 +0100)
commit608832716e27ca356ee38d14ae30b3ab525884ea
treeed3480b384b124f09aacde227df6dffa7f88d0d2
parent1c7bcefbc95220cd74cee7c239f6d723f75a0ccc
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.
gcc/cp/cp-tree.def