blob: a84e3dd4f51cbb81d02094e8a3d4a6ee97efa75a [file] [log] [blame]
! { dg-do compile }
! { dg-options "-fcheck=bounds" }
! PR fortran/100656 - ICE in gfc_conv_expr_present
subroutine s(x)
character(:), allocatable, optional :: x(:)
if ( present(x) ) then
if ( allocated(x) ) then
x = 'a' // x // 'e'
end if
end if
end