This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ARGH. Who wrote intrinsic_set_exponent.f90?


--- Steve Kargl <sgk@troutmask.apl.washington.edu>写道:

> On Tue, Aug 29, 2006 at 04:06:22PM +0800, Feng Wang wrote:
> > Steve,
> > 
> > > With my patch?
> > 
> > Did you mean the patch in
> http://gcc.gnu.org/ml/fortran/2006-08/msg00371.html?
> 
> Yes.  That patch fixes the range checking as explained in the email.
> 
> > No. I didn't apply any patch. 
> > 
> > After applying your patch, I got an error message on i686-pc-linux-gnu.
> > 
> > [wf@WFPC bug]$ gfortran intrinsic_set_exponent.f90
> >  In file intrinsic_set_exponent.f90:39
> > 
> >   i = o'20037777777'
> >      1
> > Error: Arithmetic overflow converting INTEGER(8) to INTEGER(4) at (1)
> > 
> 
> And, this is the problem that caused the start of this thread.
> 

OK. I understand what you mean. I will try another way to construct these
special floating-point numbers. Maybe TRANSFER is good choice.

Feng Wang


		
___________________________________________________________ 
抢注雅虎免费邮箱-3.5G容量,20M附件! 
http://cn.mail.yahoo.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]