view gcc/testsuite/gfortran.dg/dec_union_8.f90 @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

! { dg-do compile }
! { dg-options "-fdec-structure" }
!
! PR fortran/77764
!
! Test an ICE due to a map with zero components.
!

program p

structure /s1/
  union
    map
    end map
    map
      real :: a = 2.0
    end map
  end union
end structure

end