aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gfortran.dg/pr78259.f90
blob: 4c40aacbcb7b8b7a8b4f9e8a4cffa88cb933b678 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
! { dg-do compile }
! { dg-options "-fdec-structure" }
!
! PR fortran/78259
!
! ICE in gfc_trans_subcomponent_assign
!

subroutine sub
  structure /s/
    union
      map
        integer n(2)
      end map
      map
        integer(8) m /2/
      end map
    end union
  end structure
  record /s/ r
  r.n(1) = 1
end