! { dg-do compile }
!
! PR fortran/18918
!
! Check parsing-diagnostics for coarrays
!
integer :: a(3)[*]
a(:)[1] = 5 ! OK
a[1] = 5    !  { dg-error "besides the coarray designator" }
end
