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

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

https://gcc.gnu.org/g:082483dd79040d49351fac9074fc10c7dd810598

commit r16-3499-g082483dd79040d49351fac9074fc10c7dd810598
Author: Harald Anlauf <[email protected]>
Date:   Sun Aug 31 20:42:23 2025 +0200

    Fortran: truncate constant string passed to character,value dummy
[PR121727]

            PR fortran/121727

    gcc/fortran/ChangeLog:

            * trans-expr.cc (gfc_const_length_character_type_p): New helper
            function.
            (conv_dummy_value): Use it to determine if a character actual
            argument has a constant length.  If a character actual argument is
            constant and longer than the dummy, truncate it at compile time.

    gcc/testsuite/ChangeLog:

            * gfortran.dg/value_10.f90: New test.

Reply via email to