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

--- 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:6e9d5dfc2911e3acc6039ebfe3837e7ba4be197f

commit r13-1650-g6e9d5dfc2911e3acc6039ebfe3837e7ba4be197f
Author: Harald Anlauf <anl...@gmx.de>
Date:   Tue Jul 5 22:20:05 2022 +0200

    Fortran: error recovery simplifying PACK with invalid arguments [PR106049]

    gcc/fortran/ChangeLog:

            PR fortran/106049
            * simplify.cc (is_constant_array_expr): A non-zero-sized constant
            array shall have a non-empty constructor.  When the constructor is
            empty or missing, treat as non-constant.

    gcc/testsuite/ChangeLog:

            PR fortran/106049
            * gfortran.dg/pack_simplify_1.f90: New test.

Reply via email to