https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115810

--- Comment #15 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to linuxnyasha from comment #7)
> It doesn't work like that for me when I compile using preprocessed sources.
> The bug only appears when I simply compile. (ubuntu-24.04 Github Actions)

Are you sure about that? It definitely occurs for me when using the
preprocessed source

The full command line to reproduce that is:

/usr/bin/g++-14 -DBOOST_CONTAINER_NO_LIB -DBOOST_CONTAINER_STATIC_LINK
-DBOOST_CONTEXT_EXPORT="" -DBOOST_CONTEXT_NO_LIB=""
-DBOOST_CONTEXT_STATIC_LINK="" -DBOOST_COROUTINE_NO_LIB
-DBOOST_COROUTINE_STATIC_LINK -DBOOST_DATE_TIME_NO_LIB
-DBOOST_DATE_TIME_STATIC_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB
-DBOOST_PROGRAM_OPTIONS_STATIC_LINK -DBOOST_URL_NO_LIB=1
-DBOOST_URL_STATIC_LINK=1 -DFMT_HEADER_ONLY=1 -I/cserver/include
-I/cserver/build/_deps/utempl-src/include
-I/cserver/build/_deps/boost-src/libs/pfr/include
-I/cserver/build/_deps/llhttp-src/include
-I/cserver/build/_deps/boost-src/libs/url/include
-I/cserver/build/_deps/boost-src/libs/align/include
-I/cserver/build/_deps/boost-src/libs/assert/include
-I/cserver/build/_deps/boost-src/libs/config/include
-I/cserver/build/_deps/boost-src/libs/core/include
-I/cserver/build/_deps/boost-src/libs/static_assert/include
-I/cserver/build/_deps/boost-src/libs/throw_exception/include
-I/cserver/build/_deps/boost-src/libs/mp11/include
-I/cserver/build/_deps/boost-src/libs/optional/include
-I/cserver/build/_deps/boost-src/libs/detail/include
-I/cserver/build/_deps/boost-src/libs/preprocessor/include
-I/cserver/build/_deps/boost-src/libs/type_traits/include
-I/cserver/build/_deps/boost-src/libs/move/include
-I/cserver/build/_deps/boost-src/libs/predef/include
-I/cserver/build/_deps/boost-src/libs/utility/include
-I/cserver/build/_deps/boost-src/libs/io/include
-I/cserver/build/_deps/boost-src/libs/system/include
-I/cserver/build/_deps/boost-src/libs/variant2/include
-I/cserver/build/_deps/boost-src/libs/winapi/include
-I/cserver/build/_deps/boost-src/libs/program_options/include
-I/cserver/build/_deps/boost-src/libs/any/include
-I/cserver/build/_deps/boost-src/libs/type_index/include
-I/cserver/build/_deps/boost-src/libs/container_hash/include
-I/cserver/build/_deps/boost-src/libs/describe/include
-I/cserver/build/_deps/boost-src/libs/function/include
-I/cserver/build/_deps/boost-src/libs/bind/include
-I/cserver/build/_deps/boost-src/libs/iterator/include
-I/cserver/build/_deps/boost-src/libs/concept_check/include
-I/cserver/build/_deps/boost-src/libs/function_types/include
-I/cserver/build/_deps/boost-src/libs/mpl/include
-I/cserver/build/_deps/boost-src/libs/fusion/include
-I/cserver/build/_deps/boost-src/libs/tuple/include
-I/cserver/build/_deps/boost-src/libs/typeof/include
-I/cserver/build/_deps/boost-src/libs/functional/include
-I/cserver/build/_deps/boost-src/libs/smart_ptr/include
-I/cserver/build/_deps/boost-src/libs/lexical_cast/include
-I/cserver/build/_deps/boost-src/libs/container/include
-I/cserver/build/_deps/boost-src/libs/intrusive/include
-I/cserver/build/_deps/boost-src/libs/integer/include
-I/cserver/build/_deps/boost-src/libs/asio/include
-I/cserver/build/_deps/boost-src/libs/context/include
-I/cserver/build/_deps/boost-src/libs/pool/include
-I/cserver/build/_deps/boost-src/libs/coroutine/include
-I/cserver/build/_deps/boost-src/libs/exception/include
-I/cserver/build/_deps/boost-src/libs/date_time/include
-I/cserver/build/_deps/boost-src/libs/algorithm/include
-I/cserver/build/_deps/boost-src/libs/array/include
-I/cserver/build/_deps/boost-src/libs/range/include
-I/cserver/build/_deps/boost-src/libs/conversion/include
-I/cserver/build/_deps/boost-src/libs/regex/include
-I/cserver/build/_deps/boost-src/libs/unordered/include
-I/cserver/build/_deps/boost-src/libs/numeric/conversion/include
-I/cserver/build/_deps/boost-src/libs/tokenizer/include -isystem
/cserver/build/_deps/gtest-src/googletest/include -isystem
/cserver/build/_deps/gtest-src/googletest -isystem
/cserver/build/_deps/fmt-src/include -isystem
/cserver/build/_deps/nameof-src/include -fsanitize=address,undefined -O3
-DNDEBUG -std=gnu++23 -MD -MT CMakeFiles/cserver_tests.dir/tests/all_meta.cpp.o
-MF CMakeFiles/cserver_tests.dir/tests/all_meta.cpp.o.d -o
CMakeFiles/cserver_tests.dir/tests/all_meta.cpp.o -c
CMakeFiles/cserver_tests.dir/tests/all_meta.cpp.ii

I'll copy that .ii to my Fedora container and see if the Fedora compiler can
compile it without the strange warning lines...

Reply via email to