2 ! { dg-options "-fcoarray=lib" }
3 ! PR fortran/99351 - ICE in gfc_finish_var_decl, at fortran/trans-decl.c:695
6 character(3), parameter :: c
= 'abc'
7 integer, parameter :: s
= 42
9 character(:), allocatable
:: a
13 allocate (character(42) :: a
)
18 sync
all (stat
=a
%len
) ! { dg-error "variable definition context" }
19 sync
all (stat
=s
) ! { dg-error "variable definition context" }
20 sync
all (errmsg
=c
) ! { dg-error "variable definition context" }
23 sync
images (*, stat
=i
)
24 sync
images (*, errmsg
=a
)
25 sync
images (*, stat
=a
%len
) ! { dg-error "variable definition context" }
26 sync
images (*, stat
=s
) ! { dg-error "variable definition context" }
27 sync
images (*, errmsg
=c
) ! { dg-error "variable definition context" }
30 sync
memory (stat
=i
,errmsg
=p())
31 sync
memory (stat
=f(),errmsg
=a
)
32 sync
memory (stat
=a
%len
) ! { dg-error "variable definition context" }
33 sync
memory (stat
=s
) ! { dg-error "variable definition context" }
34 sync
memory (errmsg
=c
) ! { dg-error "variable definition context" }
41 character(:), pointer :: p