https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99153
--- Comment #7 from Alexander Lelyakin <alexander.lelyakin at googlemail dot com> --- I write a shell script to try to compile c++ system headers in random order: Results so far: Shortest sequences up to internal compiler error: ----- type_traits thread ----- clocale barrier ----- Longest sequence is: ----- stop_token ccomplex version cassert csetjmp condition_variable shared_mutex csignal map cstdalign bitset scoped_allocator codecvt barrier span mutex optional ctgmath cstdio typeindex cctype cwctype cfloat iosfwd iostream ---- Anyway there is no way to compile all system headers :(