URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [class_39.f03] - Rev 774
Go to most recent revision | Compare with Previous | Blame | View Log
! { dg-do compile }
!
! PR 47745: [OOP] Segfault with CLASS(*) and derived type dummy arguments
!
! Contributed by Rodney Polkinghorne <thisrod@gmail.com>
type, abstract :: T
end type T
contains
class(T) function add() ! { dg-error "must be dummy, allocatable or pointer" }
add = 1 ! { dg-error "Variable must not be polymorphic in intrinsic assignment" }
end function
end
Go to most recent revision | Compare with Previous | Blame | View Log