This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] fortran/67758 -- Prevent ICE caused by misplaced COMMON
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Sep 2015 17:06:30 -0700
- Subject: [PATCH] fortran/67758 -- Prevent ICE caused by misplaced COMMON
- Authentication-results: sourceware.org; auth=none
Patch built and regression tested on x86_64-*-freebsd.
OK to commit?
The patch prevents the dereferencing of a NULL pointer
by jumping out of the cleanup of a list of COMMON blocks.
2015-09-30 Steven G. Kargl <kargl@gcc.gnu.org>
* symbol.c (gfc_restore_last_undo_checkpoint): Prevent ICE during
cleanup of a misplaced COMMON.
2015-09-30 Steven G. Kargl <kargl@gcc.gnu.org>
* gfortran.dg/pr67758.f: New test.
--
Steve