annotate gcc/testsuite/gfortran.dg/forall_3.f90 @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ! the problem here was that we had forgot to call
kono
parents:
diff changeset
2 ! fold_convert in gfc_trans_pointer_assign_need_temp
kono
parents:
diff changeset
3 ! so that we got a pointer to char instead of a
kono
parents:
diff changeset
4 ! pointer to an array
kono
parents:
diff changeset
5 ! we really don't need a temp here.
kono
parents:
diff changeset
6 ! { dg-do compile }
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 program test_forall
kono
parents:
diff changeset
9 type element
kono
parents:
diff changeset
10 character(32), pointer :: name
kono
parents:
diff changeset
11 end type element
kono
parents:
diff changeset
12 type(element) :: charts(50)
kono
parents:
diff changeset
13 character(32), target :: names(50)
kono
parents:
diff changeset
14 forall(i=1:50)
kono
parents:
diff changeset
15 charts(i)%name => names(i)
kono
parents:
diff changeset
16 end forall
kono
parents:
diff changeset
17 end
kono
parents:
diff changeset
18