File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -187,18 +187,21 @@ contains
187187
188188 allocate(wrapper%array, source=t_arr)
189189
190- print *, 'wrapper: '
191- select type (typed_array => wrapper%array)
192- class is (t_array_rdp_2)
193- print *, typed_array%values
194- class is (t_array_cdp_1)
195- print *, typed_array%values
196- class default
197- end select
190+ print *, 'before adding to arrays'
191+ do i = 1, size(arrays)
192+ print *, arrays(i)%array%name
193+ select type (typed_array => arrays(i)%array)
194+ class is (t_array_rdp_2)
195+ print *, typed_array%values
196+ class is (t_array_cdp_1)
197+ print *, typed_array%values
198+ class default
199+ end select
200+ end do
198201
199202 arrays = [arrays, wrapper]
200203
201- print *, 'after allocating arrays'
204+ print *, 'after adding to arrays'
202205do i = 1, size(arrays)
203206 print *, arrays(i)%array%name
204207 select type (typed_array => arrays(i)%array)
You can’t perform that action at this time.
0 commit comments