1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
! { dg-do run } ! PR fortran/35846 ! Alternate test that also produced an ICE because of a missing length. PROGRAM test IMPLICIT NONE CHARACTER(LEN=2) :: x INTEGER :: length x = 'a' length = LEN ( (/ TRIM(x), 'a' /) // 'c') IF (length /= 2) THEN CALL abort () END IF END PROGRAM