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

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

https://gcc.gnu.org/g:3371e7f18df52867b0b88966bd98d3f1eff6f815

commit r11-9217-g3371e7f18df52867b0b88966bd98d3f1eff6f815
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Oct 26 20:51:46 2021 +0200

    Fortran: error recovery on initializing invalid derived type array
component

    gcc/fortran/ChangeLog:

            PR fortran/102816
            * resolve.c (resolve_structure_cons): Reject invalid array spec of
            a DT component referenced in a structure constructor.

    gcc/testsuite/ChangeLog:

            PR fortran/102816
            * gfortran.dg/pr102816.f90: New test.

    (cherry picked from commit 99af0b2f0fe1c0dc8c6d558157e700326d52816a)

Reply via email to