re PR fortran/65819 (overzealous checking in gfc_check_dependency for identical=true)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 25 Jul 2019 16:24:00 +0000 (16:24 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Thu, 25 Jul 2019 16:24:00 +0000 (16:24 +0000)
commit40e1ed26774b7b6c24d166489a715aa75843ab36
tree4ba8ee2131458a74b1d6ebb6bbb2493f7bceabd4
parent0dfa7ba12c7cbdfc177b07f990a859761dc36e25
re PR fortran/65819 (overzealous checking in gfc_check_dependency for identical=true)

2019-07-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/65819
* dependency.h (gfc_dep_resovler): Add optional argument identical.
* dependency.c (gfc_check_dependency): Do not alway return 1 if
the symbol is the same. Pass on identical to gfc_dep_resolver.
(gfc_check_element_vs_element): Whitespace fix.
(gfc_dep_resolver): Adjust comment for function.  If identical is
true, return 1 if any overlap has been found.

2019-07-25  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/65819
* gfortran.dg/dependency_54.f90: New test.

From-SVN: r273807
gcc/fortran/ChangeLog
gcc/fortran/dependency.c
gcc/fortran/dependency.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dependency_54.f90 [new file with mode: 0644]