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
bugSomething isn't workingenvironmentArea: build, platforms, packages, one server version or one third-party toolplatform-supportSome plaftorm (or platform/compiler/libs combination) is not properly supportedquestionFurther information is requested
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. The CI matrix stops at gcc-14 (.github/workflows/linux.yml:27).
Workaround: build with -DCH_USE_ABSEIL_FOR_BIGNUM=OFF (the 3.x Int128): that build does not build the bundled Abseil, and no object of it includes <ciso646>.
Analysis:contrib/absl/absl/base/options.h:73-77 includes <version> only when __cplusplus >= 202002L, else <ciso646>; the library sets C++17 (cmake/cpp17.cmake:5) and adds -Wall -Wextra -Werror to CMAKE_CXX_FLAGS (CMakeLists.txt:76), and these flags also apply to the bundled Abseil. In GCC 15.1, <ciso646> emits a deprecation #warning in C++17 mode (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.
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:
bugSomething isn't workingenvironmentArea: build, platforms, packages, one server version or one third-party toolplatform-supportSome plaftorm (or platform/compiler/libs combination) is not properly supportedquestionFurther information is requested
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. The CI matrix stops atgcc-14(.github/workflows/linux.yml:27).master: Not run: needs GCC 15 — a preprocessor run shows that the default C++17 build still includes<ciso646>.-Werrorwarning), error occurred when cmake build #434 (closed; a build error in the same file, but its log stops before the error).-DCH_USE_ABSEIL_FOR_BIGNUM=OFF(the 3.xInt128): that build does not build the bundled Abseil, and no object of it includes<ciso646>.Analysis:
contrib/absl/absl/base/options.h:73-77includes<version>only when__cplusplus >= 202002L, else<ciso646>; the library sets C++17 (cmake/cpp17.cmake:5) and adds-Wall -Wextra -WerrortoCMAKE_CXX_FLAGS(CMakeLists.txt:76), and these flags also apply to the bundled Abseil. In GCC 15.1,<ciso646>emits a deprecation#warningin C++17 mode (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.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. Shortened on 2026-11-20: the edit history has the first version.