(root)/
gcc-13.2.0/
gcc/
testsuite/
gfortran.dg/
pr86110.f90
! { dg-do compile }
! PR fortran/86110
program p
   character(:), allocatable :: x, y
   x = 'abc'
   y = [x(:)]  ! { dg-error "Incompatible ranks 0 and 1" }
end