Re: [PATCH] fortran/67526 -- fix NULL pointer issue

2015-09-09 Thread FX
> 2015-09-09 Steven G. Kargl > > PR fortran/67526 > * gfortran.dg/pr67526.f90: New test. > > 2015-09-09 Steven G. Kargl > > PR fortran/67526 > * expr.c (gfc_check_init_expr): Do not dereference a NULL pointer. OK. Thanks for the patch!

[PATCH] fortran/67526 -- fix NULL pointer issue

2015-09-09 Thread Steve Kargl
The attached patch fixes a NULL pointer dereference. When gfortran runs into an incomplete substring in an initialization expression, she dereferences a NULL pointer. The patch checks for NULL and returns false, which allows gfortran to issue a sensible error message. Regression tested on x86_64