[Committed] PR fortran/91727 -- NULL pointer dereference

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Committed] PR fortran/91727 -- NULL pointer dereference

Steve Kargl
Committed as obvious.

The patch checks for a NULL pointer dereference.  In this
case, it pointers to an error in the Fortran code, and so
gfortran now issues an informative error message.

2019-09-15  Steven G. Kargl  <[hidden email]>

        PR fortran/91727
        * resolve.c (conformable_arrays):  If array-spec is NULL, then
        allocate-object is a scalar.  a conformability check only occurs
        for an array source-expr.

2019-09-15  Steven G. Kargl  <[hidden email]>

        PR fortran/91727
        * gfortran.dg/pr91727.f90: New test.

--
Steve

pr91727.diff (1K) Download Attachment