! { dg-do run }! { dg-options "-std=legacy" }!! PR 15129: we used to share the character length between A and B in the ! subroutine.CHARACTER*10ACHARACTER*8BA='gfortran'B='rocks!'CALL T(A,B)containsSUBROUTINE T(A,B)CHARACTER*(*)A,Bif(len(a)/=10)call abort()if(len(b)/=8)call abort()END SUBROUTINEend