https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105021
Bug ID: 105021 Summary: [11/12 Regression] Missing freestanding headers: bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- With -std=c++20 a simple #include <atomic> fails for a freestanding library: In file included from /tmp/freestanding/include/c++/12.0.1/atomic:41, from /tmp/freestanding/include/c++/12.0.1/bits/stdc++.h:4, from <stdin>:1: /tmp/freestanding/include/c++/12.0.1/bits/atomic_base.h:41:10: fatal error: bits/atomic_wait.h: No such file or directory 41 | #include <bits/atomic_wait.h> | ^~~~~~~~~~~~~~~~~~~~ compilation terminated. That header also needs <bits/functional_hash.h> and <bits/gthr.h> which are not freestanding either.