You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
g++ 15.1.1 compile warning "<ciso646> is deprecated in C++17 #421
Recommendation: Keep open — fix needed
PR #561 (merged, not released yet) removes the <ciso646> include only for C++20 builds, but the library builds as C++17 with -Werror, so by the code the GCC 15 build of the bundled Abseil still fails on master. Next step: extend the guard in contrib/absl/absl/base/options.h to C++17 (for example, include <version> when __has_include(<version>) is true), and add GCC 15 to the CI matrix, which stops at gcc-14 (.github/workflows/linux.yml:27).
Status on master: Not run: needs GCC 15 — the devbox has GCC 13 and clang 18. A preprocessor run on master58453c2 shows that the default C++17 build still includes <ciso646>.
Analysis:contrib/absl/absl/base/options.h:73-77 includes <version> only when __cplusplus >= 202002L (PR #561), else <ciso646>. The library sets C++17 (cmake/cpp17.cmake:5, called at CMakeLists.txt:58) and adds -Wall -Wextra -Werror to CMAKE_CXX_FLAGS (CMakeLists.txt:76); these flags also apply to the bundled Abseil targets. In GCC 15.1, <ciso646> emits #warning "<ciso646> is deprecated in C++17 …" when __cplusplus >= 201703L && defined __DEPRECATED (libstdc++ include/c_global/ciso646), and -Werror makes it the error in the issue log. The warning itself is harmless: in C++ <ciso646> is empty, and Abseil includes it only to identify the standard library. A build with -DCH_USE_ABSEIL_FOR_BIGNUM=OFF (the 3.x Int128) does not build the bundled Abseil, and no object of that build includes <ciso646>.
Code check: commands and output
# Flags of the bundled Abseil target in the default build
ninja -C build -t commands contrib/absl/absl/CMakeFiles/absl_int128.dir/numeric/int128.cc.o | tail -1
# The header that options.h includes, in C++17 and C++20 modeforstdin gnu++17 c++20;doecho"== -std=$std"; g++ -std=$std -Icontrib/absl -H -fsyntax-only contrib/absl/absl/numeric/int128.cc 2>&1| grep -E "^\.+ .*(ciso646|/version)$";done# Objects that include <ciso646>: default build, and a build with -DCH_USE_ABSEIL_FOR_BIGNUM=OFF
ninja -C build -t deps | grep -c "/ciso646$"
ninja -C build-noabsl -t deps | grep -c "/ciso646$"
Output on master (58453c2), GCC 13.3.0 and clang 18:
Activity
RoyBellingan commentedon Sep 2, 2026
Yes is just a minor nitpick, and I tough was from c++20! (#561)
polyglotAI-bot commentedon Nov 18, 2026
Recommendation: Keep open — fix needed
PR #561 (merged, not released yet) removes the
<ciso646>include only for C++20 builds, but the library builds as C++17 with-Werror, so by the code the GCC 15 build of the bundled Abseil still fails onmaster. Next step: extend the guard incontrib/absl/absl/base/options.hto C++17 (for example, include<version>when__has_include(<version>)is true), and add GCC 15 to the CI matrix, which stops atgcc-14(.github/workflows/linux.yml:27).master: Not run: needs GCC 15 — the devbox has GCC 13 and clang 18. A preprocessor run onmaster58453c2shows that the default C++17 build still includes<ciso646>.-Werrormakes an error), error occurred when cmake build #434 (closed, a build error in the same fileabsl/numeric/int128.cc; its log stops before the error).Analysis:
contrib/absl/absl/base/options.h:73-77includes<version>only when__cplusplus >= 202002L(PR #561), else<ciso646>. The library sets C++17 (cmake/cpp17.cmake:5, called atCMakeLists.txt:58) and adds-Wall -Wextra -WerrortoCMAKE_CXX_FLAGS(CMakeLists.txt:76); these flags also apply to the bundled Abseil targets. In GCC 15.1,<ciso646>emits#warning "<ciso646> is deprecated in C++17 …"when__cplusplus >= 201703L && defined __DEPRECATED(libstdc++include/c_global/ciso646), and-Werrormakes it the error in the issue log. The warning itself is harmless: in C++<ciso646>is empty, and Abseil includes it only to identify the standard library. A build with-DCH_USE_ABSEIL_FOR_BIGNUM=OFF(the 3.xInt128) does not build the bundled Abseil, and no object of that build includes<ciso646>.Code check: commands and output
Output on
master(58453c2), GCC 13.3.0 and clang 18:Automated triage by Polyglot AI. A maintainer makes the final decision.