[PATCH] PR fortran/36192 -- Check for valid BT_INTEGER
Steve Kargl
sgk@troutmask.apl.washington.edu
Mon Oct 26 01:16:00 GMT 2015
The attached patch fixes a segfault in f951 for some poorly
written invalid code. See the testcase for the code in
question. Built and tested on i386-*-freebsd. Ok to commit?
2015-10-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/36192
* array.c (gfc_ref_dimen_size): Check for BT_INTEGER before calling
mpz_set.
2015-10-25 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/36192
* gfortran.dg/pr36192.f90: New test.
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr36192.diff
Type: text/x-diff
Size: 1497 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20151026/de8a2129/attachment.bin>
More information about the Fortran
mailing list