blob: 9c24f35c0d836882b4a8254924ea86b36175b36a [file] [log] [blame]
! { dg-do compile }
!
! PR fortran/104570
! The following used to cause an ICE because the string length
! evaluation of the (y) expression was not prepared to handle
! a non-scalar expression.
program p
character(:), allocatable :: x(:)
x = ['abc']
call s
contains
subroutine s
associate (y => x)
associate (z => (y))
print *, z
end associate
end associate
end
end