re PR fortran/89266 (ICE with TRANSFER of len=0 character array constructor)
authorHarald Anlauf <anlauf@gmx.de>
Sun, 24 Feb 2019 20:03:28 +0000 (20:03 +0000)
committerHarald Anlauf <anlauf@gcc.gnu.org>
Sun, 24 Feb 2019 20:03:28 +0000 (20:03 +0000)
commitcdd1793162ce3a8dc1c0d067f1af173eee98da0f
treef8023f584e66c89d7f50649bb609e9124f0aab15
parent953e25c44acc2458d854b1442d7775d997aaf187
re PR fortran/89266 (ICE with TRANSFER of len=0 character array constructor)

2019-02-24  Harald Anlauf  <anlauf@gmx.de>

PR fortran/89266
PR fortran/88326
* target-memory.c (gfc_element_size): Return false if element size
cannot be determined; element size is returned separately.
(gfc_target_expr_size): Return false if expression size cannot be
determined; expression size is returned separately.
* target-memory.h: Adjust prototypes.
* check.c (gfc_calculate_transfer_sizes): Adjust references to
gfc_target_expr_size, gfc_element_size.
* arith.c (hollerith2representation): Likewise.
* class.c (find_intrinsic_vtab): Likewise.
* simplify.c (gfc_simplify_sizeof): Likewise.

PR fortran/89266
PR fortran/88326
* gfortran.dg/pr89266.f90: New test.
* gfortran.dg/pr88326.f90: New test.

From-SVN: r269177
gcc/fortran/ChangeLog
gcc/fortran/arith.c
gcc/fortran/check.c
gcc/fortran/class.c
gcc/fortran/simplify.c
gcc/fortran/target-memory.c
gcc/fortran/target-memory.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr88326.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr89266.f90 [new file with mode: 0644]