https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98004
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Does this still fail? I don't see it failing in gcc-testresults Running it under GDB should show where the fatal exception is thrown from. I think the only places in this test that should throw system_error do so with the value of errno, or an error number returned from a pthread_xxx function. None of those should throw -1.