As noted in the bug the testcase is bogus. The following should hopefully fix the observed runtime failures on powerpc and arm. I've changed the bug to a FE accepts-invalid one.
Committed. Richard. 2018-05-03 Richard Biener <rguent...@suse.de> PR testsuite/85579 * fortran.dg/pr51434.f90: Truncate transfer argument. Index: gcc/testsuite/gfortran.dg/pr51434.f90 =================================================================== --- gcc/testsuite/gfortran.dg/pr51434.f90 (revision 259879) +++ gcc/testsuite/gfortran.dg/pr51434.f90 (working copy) @@ -6,7 +6,7 @@ module foo character(len=1), parameter :: s(n) = 'a' type :: a integer :: m = n - character(len=1):: t(n) = transfer('abcde ', s) + character(len=1):: t(n) = transfer('abcde', s) end type a end module foo