https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69654
--- Comment #9 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Fri Nov 15 12:42:29 2019 New Revision: 278287 URL: https://gcc.gnu.org/viewcvs?rev=278287&root=gcc&view=rev Log: 2019-11-15 Paul Thomas <pa...@gcc.gnu.org> PR fortran/69654 * trans-expr.c (gfc_trans_structure_assign): Move assignment to 'cm' after treatment of C pointer types and test that the type has been completely built before it. Add an assert that the backend_decl for each component exists. 2019-11-15 Paul Thomas <pa...@gcc.gnu.org> PR fortran/69654 * gfortran.dg/derived_init_6.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/derived_init_6.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog