URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [impure_constructor_1.f90] - Rev 694
Compare with Previous | Blame | View Log
! { dg-do compile }!! PR fortran/43362!module mimplicit nonetype tinteger, pointer :: aend type ttype t2type(t) :: bend type t2type t3type(t), pointer :: bend type t3containspure subroutine foo(x)type(t), target, intent(in) :: xtype(t2) :: ytype(t3) :: z! The following gave an ICE but is valid:y = t2(x) ! Note: F2003, C1272 (3) and (4) do not apply! Variant which is invalid as C1272 (3) appliesz = t3(x) ! { dg-error "Invalid expression in the structure constructor" }end subroutine fooend module m! { dg-final { cleanup-modules "m" } }
