https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127881
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Harald Anlauf <[email protected]>: https://gcc.gnu.org/g:8c04a7768f77c534a98d24c8eb109e9a1d8f04ed commit r16-9841-g8c04a7768f77c534a98d24c8eb109e9a1d8f04ed 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. (cherry picked from commit 96b3143c09001538084fb3159385f2a4fff9afc7)
