public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tobi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/17175] set_exponent breaks with integer*8 exponent
Date: Thu, 26 Aug 2004 16:26:00 -0000	[thread overview]
Message-ID: <20040826162650.9675.qmail@sourceware.org> (raw)
In-Reply-To: <20040824203618.17175.dje@gcc.gnu.org>


------- Additional Comments From tobi at gcc dot gnu dot org  2004-08-26 16:26 -------
This problem also affects the scale intrinsic:
[tobi@marktplatz tests]$ cat setexp.f90
x = 1.
x = scale (x, 25_4)
x = scale (x, 25_8)
end
[tobi@marktplatz tests]$ gfortran setexp.f90 -fdump-parse-tree -S | grep scale_4
      ASSIGN x __scale_4_4[[((x) (25))]]
      ASSIGN x __scale_4_4[[((x) (25_8))]]
[tobi@marktplatz tests]$ grep scal setexp.s
        call    scalbnf ; here an int*4 argument is passed
        call    scalbnf ; here an int*8 argument is passed
[tobi@marktplatz tests]$

And ATAN2 has a problem WRT error reporting:
[tobi@marktplatz tests]$ cat setexp.f90
double precision y
x = 1.; y =1.
x = atan2 (x, y)
end
[tobi@marktplatz tests]$ gfortran setexp.f90
 In file setexp.f90:3

x = atan2 (x, y)
            1
Error: Type of argument 'x' in call to 'atan2' at (1) should be REAL(4), not REAL(8)
[tobi@marktplatz tests]$

AFAICT these are the only intrinsics that could possibly be affected by the same
bug.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17175


  parent reply	other threads:[~2004-08-26 16:26 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-24 20:36 [Bug fortran/17175] New: " dje at gcc dot gnu dot org
2004-08-26 16:05 ` [Bug fortran/17175] " tobi at gcc dot gnu dot org
2004-08-26 16:17 ` tobi at gcc dot gnu dot org
2004-08-26 16:26 ` tobi at gcc dot gnu dot org [this message]
2004-08-26 16:55 ` tobi at gcc dot gnu dot org
2004-08-26 17:33 ` sgk at troutmask dot apl dot washington dot edu
2004-08-26 18:34 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-08-26 18:52 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-12-10 13:35 ` paulthomas2 at wanadoo dot fr
2004-12-10 13:48 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2004-12-10 14:53 ` tobi at gcc dot gnu dot org
2004-12-10 15:32 ` tobi at gcc dot gnu dot org
2004-12-11 11:06 ` cvs-commit at gcc dot gnu dot org
2004-12-11 11:10 ` tobi at gcc dot gnu dot org
2004-12-12 17:38 ` dje at gcc dot gnu dot org
2004-12-12 18:53 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-04-20  2:35 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040826162650.9675.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).