re PR fortran/87881 (gfortran.dg/inquiry_type_ref_(1.f08|3.f90) fail on darwin)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 21 Dec 2018 19:09:42 +0000 (19:09 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 21 Dec 2018 19:09:42 +0000 (19:09 +0000)
commit69597e2f5d15e801cc4911e749a10b718c08fe9d
tree29fd384cdaa022660e4d7fb17905518dce3d8dc9
parent2f8df14d379566091aed5fe278c5ee2d30490b51
re PR fortran/87881 (gfortran.dg/inquiry_type_ref_(1.f08|3.f90) fail on darwin)

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

PR fortran/87881
* expr.c (find_inquiry_ref): Loop through the inquiry refs in
case there are two of them.
(simplify_ref_chain): Return true after a successful call to
find_inquiry_ref.

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

PR fortran/87881
* gfortran.dg/inquiry_part_ref_4.f90: New test.

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