[Bug fortran/49278] ICE (segfault) when combining DATA with default initialization

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 8 21:00:22 GMT 2021


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

--- Comment #29 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:bd85b4dd2dd7b00b6342ed1e33fb48035a3dcb61

commit r11-7564-gbd85b4dd2dd7b00b6342ed1e33fb48035a3dcb61
Author: Harald Anlauf <anlauf@gmx.de>
Date:   Mon Mar 8 21:59:20 2021 +0100

    PR fortran/49278 - ICE when combining DATA with default initialization

    A variable with the PARAMETER attribute may not appear in a DATA statement.

    gcc/fortran/ChangeLog:

            PR fortran/49278
            * data.c (gfc_assign_data_value): Reject variable with PARAMETER
            attribute in DATA statement.

    gcc/testsuite/ChangeLog:

            PR fortran/49278
            * gfortran.dg/parameter_data.f90: New test.


More information about the Gcc-bugs mailing list