https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103382
--- Comment #1 from Ivan Sorokin <vanyacpp at gmail dot com> --- Please note there was a related issue PR67726. I hope it is possible to meet the requirements mentioned in the issue as well as enabling cancellation.