This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ARGH. Who wrote intrinsic_set_exponent.f90?
- From: Feng Wang <wf_cs at yahoo dot com>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: fortran at gcc dot gnu dot org
- Date: Tue, 29 Aug 2006 22:50:14 +0800 (CST)
- Subject: Re: ARGH. Who wrote intrinsic_set_exponent.f90?
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=uzTLeXg/HA4f0h9cgOQhXQJ3XqQNyAUIK6XgnqMqVG3b4EMzRZ+99sVA6jgVTGjCCWxMHqarwXy5D2IS53r+z3uQrJA3UDUDjKLbqjuYURuMybqsEpKKxs1iovtxfGgp6QPwNz2I8wnX7h13yXxgPUKjIHsWDFFOh5uWlzfiyLM= ;
--- 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