https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85352
--- Comment #16 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <[email protected]>: https://gcc.gnu.org/g:bd0134b028968788165c515196dd8b179a889879 commit r16-8499-gbd0134b028968788165c515196dd8b179a889879 Author: Christopher Albert <[email protected]> Date: Sat Mar 28 17:04:12 2026 +0100 fortran: Accept valid ENTRY specification expressions [PR85352] Remember the dummy whose bounds or character length are currently being resolved as a specification expression so sibling ENTRY arguments in the same unresolved ENTRY can be accepted. 2026-04-07 Paul Thomas <[email protected]> gcc/fortran PR fortran/85352 * resolve.cc (specification_expr_symbol): New variable. (entry_dummy_seen_p): Return whether a dummy appears in an already seen ENTRY. (gfc_resolve_formal_arglist): Remember the dummy whose specification expressions are being resolved. (resolve_variable): Accept unresolved sibling ENTRY dummy arguments while resolving the current dummy's specification expressions. (resolve_fl_variable): Preserve specification_expr_symbol. (resolve_symbol_array_spec): Likewise. gcc/testsuite PR fortran/85352 * gfortran.dg/pr85352.f90: New test. Signed-off-by: Christopher Albert <[email protected]>
