https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98661
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:9e1e6e631045c7eed2c72738b7084986d39ca09f commit r11-6681-g9e1e6e631045c7eed2c72738b7084986d39ca09f Author: Harald Anlauf <anl...@gmx.de> Date: Thu Jan 14 19:21:05 2021 +0100 PR fortran/98661 - valgrind issues with error recovery During error recovery after an invalid derived type specification it was possible to try to resolve an invalid array specification. We now skip this if the component has the ALLOCATABLE or POINTER attribute and the shape is not deferred. gcc/fortran/ChangeLog: PR fortran/98661 * resolve.c (resolve_component): Derived type components with ALLOCATABLE or POINTER attribute shall have a deferred shape. gcc/testsuite/ChangeLog: PR fortran/98661 * gfortran.dg/pr98661.f90: New test.