[Patch, fortran] PR92753 - [9/10 Regression] ICE in gfc_trans_call, at fortran/trans-stmt.c:392

Paul Richard Thomas paul.richard.thomas@gmail.com
Sun Dec 15 18:42:00 GMT 2019


This patch is straight forward and well explained by the ChangeLogs.
The ICE comes about because the simplification of the inquiry_part_ref
expressions produced bad expressions.

Thanks to Steve for spotting the error in the INQUIRY_RE and
INQUIRY_IM parts that was so blindingly obvious that I couldn't see
it. This was not in the PR but was detected while fixing it.

Regtested on FC31/x86_64 - OK for 9- and 10- branches?

Cheers

Paul

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

    PR fortran/92753
    * gfortran.dg/inquiry_type_ref_5.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-patch
Size: 3050 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20191215/e951dc17/attachment.bin>


More information about the Fortran mailing list