https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100612

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I don't think this is valid.

The requirement for the constructor is is_­invocable_­v<decay_­t<F>,
stop_­token, decay_­t<Args>...> which means the stop_token is passed to INVOKE
before the object, so it calls INVOKE(f, token, &obj) which isn't valid.

Reply via email to