https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108760
Bug ID: 108760 Summary: ranges::iota is not included in <numeric> Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hewillk at gmail dot com Target Milestone: --- It seems wrong that libstdc++ needs to include <algorithm> for ranges::iota. #include <numeric> int main() { int x[] = {0, 0, 0, 0, 0}; std::ranges::iota(x, 0); } https://godbolt.org/z/33EPeqd1b