[Bug fortran/89185] [9 Regression] runtime error: member access within null pointer of type 'struct gfc_ref' since r268092
marxin at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Feb 4 13:29:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89185
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Author: marxin
Date: Mon Feb 4 13:28:34 2019
New Revision: 268521
URL: https://gcc.gnu.org/viewcvs?rev=268521&root=gcc&view=rev
Log:
Do not dereference NULL pointer in resolve_ref (PR fortran/89185).
2019-02-04 Martin Liska <mliska@suse.cz>
PR fortran/89185
* resolve.c (resolve_ref): Remove breakout variable as
we need to prevent prev = &(*prev)->next to happen
with *prev == NULL.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/resolve.c
More information about the Gcc-bugs
mailing list