https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119136 --- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> --- For asynchronous I/O, if there still is anything pending, then also an error should be issued.