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

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>:

https://gcc.gnu.org/g:6acf9501771b8a26643fe6b887eb2d9b6d008b47

commit r16-2436-g6acf9501771b8a26643fe6b887eb2d9b6d008b47
Author: Richard Biener <rguent...@suse.de>
Date:   Tue Jul 22 15:41:20 2025 +0200

    middle-end/121216 - ICE with VLA const string initializer

    constant_byte_string fails to consider the string type might be VLA
    when initialized by an empty string CTOR.

            PR middle-end/121216
            * expr.cc (constant_byte_string): Check the string type
            size fits an uhwi before converting to uhwi.

            * gcc.dg/pr121216.c: New testcase.

Reply via email to