{patch, fortran] PR37203: additional checks for RESHAPE
Daniel Franke
franke.daniel@gmail.com
Tue Jan 6 04:33:00 GMT 2009
On Monday 05 January 2009 23:08:07 Mikael Morin wrote:
> > I think that the checks during simplification could be removed, but I
> > left them untouched for now.
>
> Hum, we will forget about it, so we should remove them now.
In attached patch, I turned all the checks during simplification into
equivalent asserts. If ever any of the asserts triggers, something is amiss in
gfc_check_reshape(). If neither catches an error and still the result of
reshape is wrong, then it's an untested case anyway.
Ok for 4.5, trunk or the to-be-created sandbox?
Regards
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr37203-2.diff
Type: text/x-patch
Size: 7393 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20090106/93e60515/attachment.bin>
More information about the Fortran
mailing list