https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123392
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-15 branch has been updated by Tejas Belagod <[email protected]>: https://gcc.gnu.org/g:062b2dfdc9c17c25ef60ae498f2518ce3b977eb9 commit r15-10679-g062b2dfdc9c17c25ef60ae498f2518ce3b977eb9 Author: Tejas Belagod <[email protected]> Date: Tue Jan 13 16:58:38 2026 +0000 expand: Handle variable-length vector constructors with debug [PR123392] Variable-length Vector initializer constructors currently only work in non-debug mode. It ICEs when compiled with -g. This patch fixes it to handle variable-length vector intialization by limiting the constructor elements to the lower bound of the variable length poly which is also the maximum number of elements allowed in the initializer. PR middle-end/123392 gcc/ * cfgexpand.cc (expand_debug_expr): Handle variable-length initializer for CONSTRUCTOR. gcc/testsuite/ * gcc.target/aarch64/sve/acle/general/pr123392.c: New.
