https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98661

--- Comment #4 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:d0d2becf2dfe8316c9014d962e7f77773ec5c27e

commit r11-6679-gd0d2becf2dfe8316c9014d962e7f77773ec5c27e
Author: Harald Anlauf <anl...@gmx.de>
Date:   Thu Jan 14 19:13:16 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.

Reply via email to