[PATCH] fortran/39893 -- fix segfault caused by invalid code
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Apr 26 18:15:00 GMT 2009
The attached patch has been regression tested on
i686-*-freebsd and x86_64-*-*freebsd. There are
no regression.
The patch prevents a segmentation fault on invalid
code. The invalid code porduces an error, but gfortran
tries to continue and fails.
2009-04-26 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/39893
* gfortran.dg/assumed_charlen_dummy.f90: New Test.
2009-04-26 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/39893
fortran/data.c (gfc_assign_data_value): If the lvalue is an
assumed character length entity in a data statement, then
return FAILURE to prevent segmentation fault.
OK for trunk and 4.4?
--
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr39893.diff
Type: text/x-diff
Size: 1245 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090426/69181ec3/attachment.bin>
More information about the Fortran
mailing list