https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102067
--- Comment #14 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Matt Godbolt from comment #13) > Both attached. When they're built they're built with: > > ``` > /home/mgodbolt/dev/wave/cmake-build-release/env/bin/x86_64-conda_cos6-linux- > gnu-g++ -DSPDLOG_FMT_EXTERNAL -Igenerated -I../src > -I../src/wave/common/../.. -Isrc/wave -I../src/wave/.. -isystem env/include > -O3 -DNDEBUG -flto -fno-fat-lto-objects -include > /home/mgodbolt/dev/wave/cmake-build-release/conda_env.hpp -fconcepts -Wall > -Wextra -Werror -g -fPIC -fvisibility-inlines-hidden -march=skylake > -Wconversion -Wsign-conversion -Wnon-virtual-dtor -Wold-style-cast > -Wpedantic -Wuseless-cast -Wdouble-promotion -Wcast-align -Wduplicated-cond > -Wlogical-op -Wrestrict -Wnull-dereference -pedantic -std=gnu++17 -MD -MT > src/wave/common/CMakeFiles/wave_common.dir/App.cpp.o -MF > src/wave/common/CMakeFiles/wave_common.dir/App.cpp.o.d -o > src/wave/common/CMakeFiles/wave_common.dir/App.cpp.o -c > ../src/wave/common/App.cpp > ``` > > The attachments were created by putting -E at the end of the line, changing > the `-o` location, then gzipping the output. Thanks for it, unfortunately, I can't reproduce it with: $ g++ -O3 -DNDEBUG -flto -fno-fat-lto-objects -fconcepts -Wall -Wextra -Werror -g -fPIC -fvisibility-inlines-hidden -march=skylake -Wconversion -Wsign-conversion -Wnon-virtual-dtor -Wold-style-cast -Wpedantic -Wuseless-cast -Wdouble-promotion -Wcast-align -Wduplicated-cond -Wlogical-op -Wrestrict -Wnull-dereference -pedantic -std=gnu++17 App.ii Sentry.ii -c $ g++ Sentry.o App.o -shared -flto with: gcc --version gcc (GCC) 9.4.1 20210825 Can you please try reproducing it locally with the 2 pre-processed file. And can you please share the full linker command line (I posted only the lto1 invocation).