https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115969
Bug ID: 115969 Summary: [15 regression] ICE when building clang-16.0.6 on arm64 (output_operand: invalid expression as operand) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- I don't yet have a guess for which change causes this. I should really stamp builds with the last GCC commit each package built with... ``` $ g++ -c ./lib/Sema/CMakeFiles/obj.clangSema.dir/SemaExpr.cpp.ii -O3 -fno-vect-cost-model -fPIC during RTL pass: final In file included from /var/tmp/portage/sys-devel/clang-16.0.6/work/clang/lib/Sema/SemaExpr.cpp:13: /var/tmp/portage/sys-devel/clang-16.0.6/work/clang/lib/Sema/TreeTransform.h: In member function ‘clang::QualType clang::TreeTransform<Derived>::TransformType(clang::TypeLocBuilder&, clang::TypeLoc) [with Derived = EnsureImmediateInvocationInDefaultArgs]’: /var/tmp/portage/sys-devel/clang-16.0.6/work/clang/lib/Sema/TreeTransform.h:4823:1: internal compiler error: output_operand: invalid expression as operand 4823 | } | ^ 0xaaaad29586bf internal_error(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:491 0xaaaad0bbd623 output_operand_lossage(char const*, ...) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:3189 0xaaaad0bbdd07 output_address(machine_mode, rtx_def*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:3647 0xaaaad0bbdbeb output_operand(rtx_def*, int) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:3631 0xaaaad0bbef67 output_asm_insn(char const*, rtx_def**) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:3543 0xaaaad0bc1fd3 output_asm_insn(char const*, rtx_def**) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:3420 0xaaaad0bc1fd3 final_scan_insn_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:2840 0xaaaad0bc439f final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:2886 0xaaaad0bc439f final_1 /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:1977 0xaaaad0bc498b rest_of_handle_final /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:4239 0xaaaad0bc498b execute /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/final.cc:4317 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-unknown-linux-gnu/15/lto-wrapper Target: aarch64-unknown-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --prefix=/usr --bindir=/usr/aarch64-unknown-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/aarch64-unknown-linux-gnu/15/include --datadir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15 --mandir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15/man --infodir=/usr/share/gcc-data/aarch64-unknown-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/aarch64-unknown-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/aarch64-unknown-linux-gnu/15/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 15.0.9999 p, commit f3f27691478a0b256a3b52348bae96f5a6b5f089' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --enable-libgomp --disable-libssp --disable-libada --disable-standard-branch-protection --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config=bootstrap-O3 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240717 (experimental) f438299ef6860b8233ffe1c5fda7d63f2f6c56ae (Gentoo Hardened 15.0.9999 p, commit f3f27691478a0b256a3b52348bae96f5a6b5f089) ```