re PR fortran/91296 (ICE when passing complex number %re/%im as a procedure argument...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 30 Jul 2019 20:02:27 +0000 (20:02 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Tue, 30 Jul 2019 20:02:27 +0000 (20:02 +0000)
commitf16be16d2d4d48fb918bf8996f5fa0727b1ab1e3
treec64fcf9b77cc38fdce9b83307e85e01ad48a24a5
parent5ec4a442965f71b8535ee4080a498a147d8fc8a8
re PR fortran/91296 (ICE when passing complex number %re/%im as a procedure argument with -Waliasing.)

2019-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91296
* interface.c (compare_actual_expr): When checking for aliasing, add
a case to handle REF_INQUIRY (e.g., foo(x%re, x%im) do not alias).

2019-07-30  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/91296
* gfortran.dg/pr91296.f90: New test.

From-SVN: r273914
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr91296.f90 [new file with mode: 0644]