https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127881
--- Comment #4 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:96b3143c09001538084fb3159385f2a4fff9afc7 commit r17-5358-g96b3143c09001538084fb3159385f2a4fff9afc7 Author: Harald Anlauf <[email protected]> Date: Sun Oct 18 23:09:16 2026 +0200 fortran: Fix CHARACTER(c_char),VALUE dummy of BIND(C) interface [PR127881] For a procedure declared with a BIND(C) interface, a scalar character dummy with the VALUE attribute shall always be passed by value. Only a single character shall be passed. PR fortran/127881 gcc/fortran/ChangeLog: * trans-expr.cc (conv_scalar_char_value): Fix passing of the case of non-constant strings: always pass first first character by value. gcc/testsuite/ChangeLog: * gfortran.dg/bind_c_char_value.f90: New test. * gfortran.dg/bind_c_char_value_aux.c: New test.
