https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108599
--- Comment #2 from Henning Baldersheim <balder at yahooinc dot com> --- This is an even bigger issue with gcc 13. Then it only requires -march=haswell Works: c++ -Wall -Wextra -O3 -march=ivybridge test.cpp && ./a.out Fails: c++ -Wall -Wextra -O3 -march=haswell test.cpp && ./a.out a.out: test.cpp:23: void assert_stats(size_t, size_t, size_t, size_t, Stats): Assertion `exp_dead == stats._dead' failed. gcc version: gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-redhat-linux Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://urldefense.com/v3/__http://bugzilla.redhat.com/bugzilla__;!!Op6eflyXZCqGR5I!CPaxwlsoI_wy_AwjCIWAdmMOLgtd7sjMpqqz-fNyAFo5nnEaBO0guYKTV5m7wWkHYS5N4zBFXJGe0DaFnA$ --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.0.1-20230117/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 13.0.1 20230117 (Red Hat 13.0.1-0) (GCC)