URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [pointer_assign_7.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR 39931: ICE on invalid Fortran 95 code (bad pointer assignment)
!
! Contributed by Thomas Orgis <thomas.orgis@awi.de>
program point_of_no_return
implicit none
type face_t
integer :: bla
end type
integer, pointer :: blu
type(face_t), pointer :: face
allocate(face)
allocate(blu)
face%bla => blu ! { dg-error "Non-POINTER in pointer association context" }
end program