在 2022-10-03 13:03, Bernhard Reutner-Fischer 写道:
No, sorry for my brevity. Using __gthread_t like in your patch is correct.
I see. In 'libgfortran/io/async.c' there is
```
async_unit *au = u->au;
LOCK (&au->lock);
thread_unit = u;
au->thread = __gthread_self ();
```
so indeed `thread` should be `__gthread_t`. By the way I reported this issue four months ago and
haven't received any response so far:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105764 -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
