[Bug fortran/104573] ICE in resolve_structure_cons, at fortran/resolve.cc:1299

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 2 18:23:46 GMT 2022


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

--- Comment #8 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:12463f1ecbcb30b39b8212454a6e598645123305

commit r12-7456-g12463f1ecbcb30b39b8212454a6e598645123305
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Tue Mar 1 23:13:17 2022 +0100

    Fortran: error recovery after invalid assumed type declaration

    gcc/fortran/ChangeLog:

            PR fortran/104573
            * resolve.cc (resolve_structure_cons): Avoid NULL pointer
            dereference when there is no valid component.

    gcc/testsuite/ChangeLog:

            PR fortran/104573
            * gfortran.dg/assumed_type_14.f90: New test.


More information about the Gcc-bugs mailing list