Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gfortran.dg/dec_structure_16.f90 @ 152:2b5abeee2509
update gcc11
author | anatofuz |
---|---|
date | Mon, 25 May 2020 07:50:57 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
! { dg-do compile } ! { dg-options "-fdec-structure" } ! ! PR fortran/77782 ! ! Test an ICE where a union might be considered equal to a structure, ! causing the union's backend_decl to be replaced with that of the structure. ! program p structure /s1/ union map integer(4) a end map map real(4) b end map end union end structure structure /s2/ union ! regression: if this union == s1, we ICE in gfc_get_union_type map integer(2) x, y integer(4) z end map end union end structure record /s1/ r1 r1.a = 0 end