blob: 890670f5854d06ee296c66551962063d29bd7c7b [file] [log] [blame]
! { dg-do compile }
! PR fortran/86110
program p
character(:), allocatable :: x, y
x = 'abc'
y = [x(:)] ! { dg-error "Incompatible ranks 0 and 1" }
end