aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-intrinsic.cc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2024-12-11 17:32:39 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2025-01-16 09:41:00 +0000
commit462a7f45caf78466ee6d9a1256a1e2848e4ec49c (patch)
treec146ee405421611a7044faf8b89e35d6dfadafac /gcc/fortran/trans-intrinsic.cc
parent301a961ffd0567eece55ece42e80a7ba9e855ba0 (diff)
downloadgcc-462a7f45caf78466ee6d9a1256a1e2848e4ec49c.zip
gcc-462a7f45caf78466ee6d9a1256a1e2848e4ec49c.tar.gz
gcc-462a7f45caf78466ee6d9a1256a1e2848e4ec49c.tar.bz2
libstdc++: Move std::basic_ostream to new internal header [PR99995]
This adds <bits/ostream.h> so that other headers don't need to include all of <ostream>, which pulls in all of <format> since C++23 (for the std::print and std::println overloads in <ostream>). This new header allows the constrained operator<< in <bits/unique_ptr.h> to be defined without all of std::format being compiled. We could also replace <ostream> with <bits/ostream.h> in all of <istream>, <fstream>, <sstream>, and <spanstream>. That seems more likely to cause problems for users who might be expecting <sstream> to define std::endl, for example. Although the standard doesn't guarantee that, it is more reasonable than expecting <memory> to define it! We can look into making those changes for GCC 16. libstdc++-v3/ChangeLog: PR libstdc++/99995 * include/Makefile.am: Add new header. * include/Makefile.in: Regenerate. * include/bits/unique_ptr.h: Include bits/ostream.h instead of ostream. * include/std/ostream: Include new header. * include/bits/ostream.h: New file.
Diffstat (limited to 'gcc/fortran/trans-intrinsic.cc')
0 files changed, 0 insertions, 0 deletions