2018-02-22 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/59781
* gfortran.dg/derived_init_5.f90: New test.
From-SVN: r257917
+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
--- /dev/null
+! { 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