https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116226
Bug ID: 116226 Summary: ICE when building exp_aggr.adb with -Warray-bounds (tree check: expected integer_cst, have ssa_name in get_len, at ree.h:6509) Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org CC: dkm at gcc dot gnu.org Target Milestone: --- ``` $ x86_64-pc-linux-gnu-gcc -c -O2 -Warray-bounds -gnatpg -gnatwns -gnata -I- -I. -Iada/generated -Iada -I/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/ada /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/ada/exp_aggr.adb -o ada/exp_aggr.o during GIMPLE pass: bounds +===========================GNAT BUG DETECTED==============================+ | 15.0.0 20240804 (experimental) 7cd71c88637e133cf983c235a29f65fdcc1e28ca (x86_64-pc-linux-gnu) GCC error:| | tree check: expected integer_cst, have ssa_name in get_len, at | | tree.h:6509 | | Error detected around /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/ada/exp_aggr.adb:9472:4| | Compiling /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/gcc/ada/exp_aggr.adb| | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +==========================================================================+ ``` ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python --enable-objc-gc --enable-languages=c,c++,d,go,objc,obj-c++,fortran,ada,rust --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 831195db0373e4954ff47452375844caf997e34b' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --enable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240804 (experimental) 7cd71c88637e133cf983c235a29f65fdcc1e28ca (Gentoo Hardened 15.0.9999 p, commit 831195db0373e4954ff47452375844caf997e34b) ```