https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115591
--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Eric Botcazou <ebotca...@gcc.gnu.org>: https://gcc.gnu.org/g:6c5ef4944e3858e7daf1ef75a3afa93a3ece37c5 commit r14-10385-g6c5ef4944e3858e7daf1ef75a3afa93a3ece37c5 Author: Eric Botcazou <ebotca...@adacore.com> Date: Sat Jul 6 11:56:19 2024 +0200 RISC-V: fix internal error on global variable-length array This is an ICE in the RISC-V back-end calling tree_to_uhwi on the DECL_SIZE of a global variable-length array. gcc/ PR target/115591 * config/riscv/riscv.cc (riscv_valid_lo_sum_p): Add missing test on tree_fits_uhwi_p before calling tree_to_uhwi. gcc/testsuite/ * gnat.dg/array41.ads, gnat.dg/array41.adb: New test.