https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116595
--- Comment #9 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Robin Dapp <rd...@gcc.gnu.org>: https://gcc.gnu.org/g:f183ae0ae891a471764876eb1e69239904598bb4 commit r15-9329-gf183ae0ae891a471764876eb1e69239904598bb4 Author: Robin Dapp <rd...@ventanamicro.com> Date: Thu Apr 3 16:46:05 2025 +0200 expr: Use constant_lower_bound classifying constructor els [PR116595]. In categorize_ctor_elements_1 we do VECTOR_CST_NELTS (value).to_constant () but VALUE's type can be a VLA vector (since r15-5780-g17b520a10cdaab). This patch uses constant_lower_bound instead. PR middle-end/116595 gcc/ChangeLog: * expr.cc (categorize_ctor_elements_1): Use constant_lower_bound. gcc/testsuite/ChangeLog: * g++.target/riscv/rvv/autovec/pr116595.C: New test.