view gcc/testsuite/gfortran.dg/pr85798.f90 @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
program p
   type t
      integer, allocatable :: a(:)
   end type
   type u
      real x
      type(t) y
   end type
   type(t) :: z
   type(u) :: q
   data z%a(1) / 789 /     ! { dg-error "Allocatable component" }
   data q%y%a(1) / 789 /   ! { dg-error "Allocatable component" }
end