https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98016
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:7ae210d5db5eb96989b2f639e65678b5597e61f0 commit r11-5759-g7ae210d5db5eb96989b2f639e65678b5597e61f0 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Sat Dec 5 14:14:19 2020 +0000 Fortran: flag formal argument before resolving an array spec [PR98016]. 2020-12-05 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/98016 * resolve.c (resolve_symbol): Set formal_arg_flag before resolving an array spec and restore value afterwards. gcc/testsuite/ PR fortran/98016 * gfortran.dg/pr98016.f90: New test.