OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gfortran.dg/] [forall_3.f90] - Rev 165

Go to most recent revision | Compare with Previous | Blame | View Log

! 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

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.