re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 17 Sep 2019 08:30:50 +0000 (08:30 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 17 Sep 2019 08:30:50 +0000 (08:30 +0000)
commitc4ccdc0e63150d1cab2686a16dafeb7520315cb2
tree5097632df9d13621c49c887823c65c3a42c0456e
parentecd4d80cb2ee6a72d46c59eff47860d2a0fa2daa
re PR fortran/91588 (ICE in check_inquiry, at fortran/expr.c:2673)

2019-09-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91588
* expr.c (check_inquiry): Remove extended component refs by
using symbol pointers. If a function argument is an associate
variable with a constant target, copy the target expression in
place of the argument expression. Check that the charlen is not
NULL before using the string length.
(gfc_check_assign): Remove extraneous space.

2019-09-17  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/91588
* gfortran.dg/associate_49.f90 : New test.

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