[PATCH v2] coroutines: Implement n4849 changes to exception handling.

Nathan Sidwell nathan@acm.org
Thu Mar 26 12:01:47 GMT 2020


On 3/25/20 3:46 PM, Iain Sandoe wrote:
> Hi,
> 
> Iain Sandoe <developer@sandoe-acoustics.co.uk> wrote:
> 
>> This is the first of two remaining changes needed to bring the GCC
>> implementation into line with the standard draft at n4849.
> 
> Here is a revised version with the “initial await resume called” variable
> renamed to be more consistent, as we discussed off-list.
> 

> +  /* n4849 adds specific behaviour to treat exceptions thrown by the
> +     await_resume () of the initial suspend expression.  In order to
> +     implement this, we need to treat the initial_suspend expression
> +     as if it were part of the user's authored function body.  This

(channelling Sandra) user-authored, I think?
  only need to exercise the initial

Otherwise fine -- no cognative dissonance on variable name vs meaning :)

ok, thanks

nathan

-- 
Nathan Sidwell


More information about the Gcc-patches mailing list