aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/util
diff options
context:
space:
mode:
authorHarald Anlauf <anlauf@gmx.de>2025-03-15 15:11:22 +0100
committerHarald Anlauf <anlauf@gmx.de>2025-03-16 23:05:32 +0100
commitb2b139ddee763dd5fd71a3368e5e66399e3c52a3 (patch)
tree6b461581cee749d512f5157da25b3acbfc7d61cc /gcc/rust/util
parent7d6e5591e6ab1f5a24dcf007b17f81cc19987c47 (diff)
downloadgcc-b2b139ddee763dd5fd71a3368e5e66399e3c52a3.zip
gcc-b2b139ddee763dd5fd71a3368e5e66399e3c52a3.tar.gz
gcc-b2b139ddee763dd5fd71a3368e5e66399e3c52a3.tar.bz2
Fortran: fix bogus dependency check in ALLOCATE statement [PR60560]
Restrict dependency check of ALLOCATE object to variables in the same statement, but exclude check of length type parameter that might be set in the declaration and could lead to a bogus cyclic dependency. PR fortran/60560 gcc/fortran/ChangeLog: * expr.cc (gfc_traverse_expr): Do not descend into length type parameter for negative values of auxiliary parameter f. * resolve.cc (gfc_find_var_in_expr): New helper function to check dependence of an expression on given variable. (resolve_allocate_expr): Use it to determine if array bounds in an ALLOCATE statement depend explicitly on a variable. gcc/testsuite/ChangeLog: * gfortran.dg/allocate_error_8.f90: New test.
Diffstat (limited to 'gcc/rust/util')
0 files changed, 0 insertions, 0 deletions