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

Jerry D jvdelisle2@gmail.com
Mon Sep 1 03:31:29 GMT 2025


On 8/31/25 11:58 AM, Harald Anlauf wrote:
> Dear all,
> 
> the attached fixes a missed optimization passing a constant character
> string to a scalar dummy with value attribute and shorter than the
> actual by truncating the latter at compile time.
> 
> Regtested on x86_64-pc-linux-gnu.  OK for mainline?
> 
> Thanks,
> Harald
> 

OK, and I even tested it. ;)

Regards,

Jerry


More information about the Fortran mailing list