URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [subref_array_pointer_3.f90] - Rev 302
Compare with Previous | Blame | View Log
! { dg-do compile }! Tests the fix for PR35470, in which the pointer assignment would fail! because the assumed size 'arr' would get mixed up with the component! 'p' in the check for the upper bound of an assumed size array.!! Contributed by Antony Lewis <antony@cosmologist.info>!subroutine sub(arr)type real_pointerreal, pointer :: p(:)end type real_pointertype(real_pointer), dimension(*) :: arrreal, pointer :: p(:)p => arr(1)%pend subroutine
