https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92753
--- Comment #10 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Sat Dec 21 18:21:21 2019 New Revision: 279697 URL: https://gcc.gnu.org/viewcvs?rev=279697&root=gcc&view=rev Log: 2019-12-21 Paul Thomas <pa...@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 <pa...@gcc.gnu.org> PR fortran/92753 * gfortran.dg/inquiry_type_ref_5.f90 : New test. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/inquiry_type_ref_5.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/expr.c branches/gcc-9-branch/gcc/testsuite/ChangeLog