gcc/testsuite/gfortran.dg/pr78259.f90
raw| 1 | ! { dg-do compile } |
| 2 | ! { dg-options "-fdec-structure" } |
| 3 | ! |
| 4 | ! PR fortran/78259 |
| 5 | ! |
| 6 | ! ICE in gfc_trans_subcomponent_assign |
| 7 | ! |
| 8 | |
| 9 | subroutine sub |
| 10 | structure /s/ |
| 11 | union |
| 12 | map |
| 13 | integer n(2) |
| 14 | end map |
| 15 | map |
| 16 | integer(8) m /2/ |
| 17 | end map |
| 18 | end union |
| 19 | end structure |
| 20 | record /s/ r |
| 21 | r.n(1) = 1 |
| 22 | end |