[PATCH] PR fortran/50573 -- Fix checking of dshift{lr} arguments

Steve Kargl sgk@troutmask.apl.washington.edu
Sun Oct 30 22:02:00 GMT 2011


On Fri, Oct 28, 2011 at 07:43:58AM +0200, Tobias Burnus wrote:
> Am 28.10.2011 01:27, schrieb Steve Kargl:
> >The attached patch tightens the checking of the arguments
> >of the dshiftl and dshiftr argument.  It also does a kind
> >type conversion when either I or J is a BOZ to the kind
> >type of the non-BOZ I or J.
> >
> >OK for trunk?
> 
> OK with a changelog entry for the NEAREST change. And thanks for the patch.
> 
> Could you also update the manual?
> http://gcc.gnu.org/onlinedocs/gfortran/DSHIFTL.html
> 

Here's the patch I committed.  The NEAREST stuff was committed 
in a prevous commit, and I've updated the docs.


2011-10-30  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/50573
	* check.c (gfc_check_dshift): Update argument checking for BOZ.
	Update checking SHIFT against BITSIZE of I or J.
	* intrinsic.texi: Update docs for DSHIFTL and DSHIFTR.

2011-10-30  Steven G. Kargl  <kargl@gcc.gnu.org>

	PR fortran/50573
	* gfortran.dg/dshift_3.f90: New test.

-- 
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dshft.diff
Type: text/x-diff
Size: 5755 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111030/355c9462/attachment.bin>


More information about the Fortran mailing list