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

Steve Kargl sgk@troutmask.apl.washington.edu
Thu Oct 27 23:27:00 GMT 2011


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?


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

	PR fortran/50573
	* check.c (gfc_check_dshift): Tighten the checks on I, J, and SHIFT.  If I or
 	J is a BOZ, convert to the kind type of the other.
 
2011-10-27  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: dshift.diff
Type: text/x-diff
Size: 3731 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111027/cbeb839a/attachment.bin>


More information about the Fortran mailing list