aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr91785.f90
blob: fb3d964fc068b94f47a7628674efd67812d5cc46 (plain)
1
2
3
4
5
6
7
8
! { dg-do compile }
! PR fortran/91785
! Code contributed by Gerhard Steinmetz
program p
   complex :: a(*)   ! { dg-error "Assumed size array at" }
   real :: b(2)
   b = a%im          ! { dg-error "upper bound in the last dimension" }
end