Commit 8304bcf2 by Thomas Koenig

re PR fortran/59781 ([F03] Incorrect initialisation of derived type)

2018-02-22  Thomas Koenig  <tkoenig@gcc.gnu.org>

	PR fortran/59781
	* gfortran.dg/derived_init_5.f90: New test.

From-SVN: r257917
parent 5b194a34
2018-02-22 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/59781
* gfortran.dg/derived_init_5.f90: New test.
2018-02-22 Jakub Jelinek <jakub@redhat.com>
PR target/82851
......
! { dg-do run }
! PR 59781 - this was not initialized correctly before.
! Original test case by James Spencer.
implicit none
type t1
integer :: s
end type
type t2
type(t1) :: state = t1(1)
real, allocatable :: store(:)
end type
call test
contains
subroutine test
type(t2) :: rng
if (rng%state%s /= 1) STOP 1
end subroutine
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment