[Bug fortran/67804] ICE on data initialization of type(character) with wrong data

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jan 16 20:40:56 GMT 2022


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

--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Harald Anlauf
<anlauf@gcc.gnu.org>:

https://gcc.gnu.org/g:c5bf6dc27cdb091f1f8046f98ce7ca197bffd908

commit r11-9465-gc5bf6dc27cdb091f1f8046f98ce7ca197bffd908
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Wed Jan 12 21:24:49 2022 +0100

    Fortran: fix error recovery on bad structure constructor in DATA statement

    gcc/fortran/ChangeLog:

            PR fortran/67804
            * primary.c (gfc_match_structure_constructor): Recover from errors
            that occurred while checking for a valid structure constructor in
            a DATA statement.

    gcc/testsuite/ChangeLog:

            PR fortran/67804
            * gfortran.dg/pr93604.f90: Adjust to changed diagnostics.
            * gfortran.dg/pr67804.f90: New test.

    (cherry picked from commit 0b8464365b15ac108cd1d00d5bc56d229c1340de)


More information about the Gcc-bugs mailing list