re PR fortran/92753 (ICE in gfc_trans_call, at fortran/trans-stmt.c:392)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 21 Dec 2019 16:19:42 +0000 (16:19 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 21 Dec 2019 16:19:42 +0000 (16:19 +0000)
commitb1f16cae7dda8111a41bd351be63c808d593546d
tree813ec5f2d55660383daf822fe5fb5c5934d93a75
parenta09ccc22459c565814f79f96586fe4ad083fe4eb
re PR fortran/92753 (ICE in gfc_trans_call, at fortran/trans-stmt.c:392)

2019-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/92753
* expr.c (find_inquiry_ref): Catch INQUIRY_LEN case, where the
temporary expression has been converted to a constant and make
the new expression accordingly. Correct the error in INQUIRY_RE
and INQUIRY_IM cases. The original rather than the resolved
expression was being used as the source in mpfr_set.

2019-12-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/92753
* gfortran.dg/inquiry_type_ref_5.f90 : New test.

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