Mercurial > hg > CbC > CbC_gcc
view 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 |
line wrap: on
line source
! the problem here was that we had forgot to call ! fold_convert in gfc_trans_pointer_assign_need_temp ! so that we got a pointer to char instead of a ! pointer to an array ! we really don't need a temp here. ! { dg-do compile } program test_forall type element character(32), pointer :: name end type element type(element) :: charts(50) character(32), target :: names(50) forall(i=1:50) charts(i)%name => names(i) end forall end