https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85579
Harald Anlauf <anlauf at gmx dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |anlauf at gmx dot de --- Comment #6 from Harald Anlauf <anlauf at gmx dot de> --- (In reply to Richard Biener from comment #5) > FE issue I believe. It looks like the testcase got corrupted. Testing with another compiler shows that it is invalid as is. E.g., % nagfor pr51434.f90 NAG Fortran Compiler Release 6.1(Tozai) Build 6106 Error: pr51434.f90, line 9: Dimension 1 of value for array T has extent 18 instead of 5 Errors in declarations, no further processing for FOO Error: pr51434.f90, line 13: USE of module FOO which has errors Errors in declarations, no further processing for BAR [NAG Fortran Compiler error termination, 2 errors] Replacing the line character(len=1):: t(n) = transfer('abcde ', s) by character(len=1):: t(n) = transfer('abcde', s) makes it work properly.