https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123392

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Tejas Belagod <[email protected]>:

https://gcc.gnu.org/g:c79bcca7fb46b77157e9c7b467e97acccbce64fc

commit r16-6774-gc79bcca7fb46b77157e9c7b467e97acccbce64fc
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.

Reply via email to