From: Tomasz Kamiński Date: Thu, 14 May 2026 12:47:03 +0000 (+0200) Subject: libstdc++: Include range_access.h from and X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87e4eb4492701426a02f5fcf460bb0b6d432d2b7;p=thirdparty%2Fgcc.git libstdc++: Include range_access.h from and This implements resolutions for LWG4131 and LWG3625 (also part of 4.8. section of the P3016R6). As for any other issues LWG issue changes are applied as DR for the oldest applicable standards: * (LWG4131): C++26, since optional range support * (LWG3625): C++23, since introduction libstdc++-v3/ChangeLog: * include/std/optional [__cpp_lib_optional_range_support]: Replace include with . * include/std/stacktrace: Likewise. Reviewed-by: Jonathan Wakely Signed-off-by: Tomasz Kamiński --- diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional index e3c6ea20988..8d6d049e8cc 100644 --- a/libstdc++-v3/include/std/optional +++ b/libstdc++-v3/include/std/optional @@ -62,7 +62,7 @@ #ifdef __cpp_lib_optional_range_support // C++ >= 26 # include # include -# include +# include #endif namespace std _GLIBCXX_VISIBILITY(default) diff --git a/libstdc++-v3/include/std/stacktrace b/libstdc++-v3/include/std/stacktrace index 587a163e976..79941d93b88 100644 --- a/libstdc++-v3/include/std/stacktrace +++ b/libstdc++-v3/include/std/stacktrace @@ -45,9 +45,9 @@ #include #include #include -#include #include #include // __get_temporary_buffer +#include #include namespace std _GLIBCXX_VISIBILITY(default)