https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120812
--- Comment #9 from anlauf at gcc dot gnu.org --- (In reply to Christophe Peyret from comment #8) > try this on Mac with Fortran 15.1.0 > > > program main > > use iso_c_binding > implicit none > > character(len=:), pointer :: str =>null() > > allocate( character(len=11) :: str ) > > str = “0123456789x” > print “((A))", str, str > str(11:11) = c_new_line > print "((A))”, str, str > > deallocate(str) > > end Can you remove the "=> null()" in the declaration? If that fixes/hides the problem, then the issue is likely fixed in the meantime.