aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr107821.f90
blob: 5d86997d91f90af668019210de5995eae0f7c66e (plain)
1
2
3
4
5
6
7
8
9
! { dg-do compile }
!
! Contributed by Gerhard Steinmetz  <gscfq@t-online.de>
!
program p
   associate (a => 1)
      print *, [character((a(1))) :: '1'] ! { dg-error "has an array reference" }
   end associate
end