[PATCH] PR fortran/66380 -- Remove assert() to allow error condition

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Jun 2 17:37:00 GMT 2015


The attached patch returns an assert() and returns NULL
during the simplification of a bad RESHAPE call.  This
allows gfortran to correctly issue and error message.
Regression tested on trunk.  OK to commit.

2015-05-27  Steven G. Kargl  <kargl@gcc.gnu.org>

	* simplify.c (gfc_simplify_reshape): Convert assert into returning
	NULL, which triggers an error condition.

2015-05-27  Steven G. Kargl  <kargl@gcc.gnu.org>

	* gfortran.dg/reshape_7.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: reshape.diff
Type: text/x-diff
Size: 1241 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20150602/ccbd3876/attachment.bin>


More information about the Gcc-patches mailing list