[Bug fortran/98661] Valgrind errors during error recovery of invalid derived type declarations
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 14 18:14:10 GMT 2021
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 <anlauf@gcc.gnu.org>:
https://gcc.gnu.org/g:d0d2becf2dfe8316c9014d962e7f77773ec5c27e
commit r11-6679-gd0d2becf2dfe8316c9014d962e7f77773ec5c27e
Author: Harald Anlauf <anlauf@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.
More information about the Gcc-bugs
mailing list