Fortran: fix dependency checks for inquiry refs [PR115039]
commitd4974fd22730014e337fd7ec2471945ba8afb00e
authorHarald Anlauf <anlauf@gmx.de>
Fri, 10 May 2024 19:18:03 +0000 (10 21:18 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Sat, 11 May 2024 17:40:21 +0000 (11 19:40 +0200)
tree007134bce290e96e425a99e31c587d5039ba22df
parent1da83fece2963cfe0df57ac5e85dd1f92427ca70
Fortran: fix dependency checks for inquiry refs [PR115039]

gcc/fortran/ChangeLog:

PR fortran/115039
* expr.cc (gfc_traverse_expr): An inquiry ref does not constitute
a dependency and cannot collide with a symbol.

gcc/testsuite/ChangeLog:

PR fortran/115039
* gfortran.dg/statement_function_5.f90: New test.
gcc/fortran/expr.cc
gcc/testsuite/gfortran.dg/statement_function_5.f90 [new file with mode: 0644]