[PATCH] PR fortran/44346 -- check some values in ibits, mvbits

Steve Kargl sgk@troutmask.apl.washington.edu
Mon May 31 20:34:00 GMT 2010


The attached patch was tested on i686-*-freebsd.  The patch with
the testcases are obvious (to at least me).  

OK for trunk (and 4.5 after testing)?.

2010-05-31  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/44346
	* fortran/check.c (gfc_check_ibits, gfc_check_mvbits): Add checks that
	constant argument(s) are within range.

2010-05-31  Steven G. Kargl  <kargl@gcc.gnu.org>

	* testsuite/gfortran.dg/ibits_1.f90: New test.
	* testsuite/gfortran.dg/mvbits_9.f90: New test.
-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check.c.diff
Type: text/x-diff
Size: 4337 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20100531/d18d4300/attachment.bin>


More information about the Fortran mailing list