[Bug fortran/80118] [5/6/7/8 Regression] ICE with zero size parameter array

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Oct 3 15:51:00 GMT 2017


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

--- Comment #4 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Tue Oct  3 15:50:45 2017
New Revision: 253383

URL: https://gcc.gnu.org/viewcvs?rev=253383&root=gcc&view=rev
Log:
2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * expr.c (gfc_get_full_arrayspec_from_expr): If there is
        no symtree, set array spec to NULL.

2017-10-03  Thomas Koenig  <tkoenig@gcc.gnu.org>
            Steven G. Kargl  <kargl@gcc.gnu.org>

        Backport from trunk
        PR fortran/80118
        * gfortran.dg/zero_sized_7.f90: New test.



Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/zero_sized_7.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/expr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list