re PR fortran/69654 (ICE in gfc_trans_structure_assign)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 15 Nov 2019 12:42:29 +0000 (12:42 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 15 Nov 2019 12:42:29 +0000 (12:42 +0000)
commit8eea62d8ab9c621b9d46926eb4c5380fe5606e4f
tree0b00d12b35b993e30818f9b746cfe3c739dc780f
parent381835c810867b1cb4658de0ee9bacc59135010c
re PR fortran/69654 (ICE in gfc_trans_structure_assign)

2019-11-15  Paul Thomas  <pault@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  <pault@gcc.gnu.org>

PR fortran/69654
* gfortran.dg/derived_init_6.f90: New test.

From-SVN: r278287
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/derived_init_6.f90 [new file with mode: 0644]