public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/26815]  New: requires both arguments to ATAN2 to be of same type
@ 2006-03-23  0:09 bdavis at gcc dot gnu dot org
  2006-03-23  5:45 ` [Bug fortran/26815] " pault at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: bdavis at gcc dot gnu dot org @ 2006-03-23  0:09 UTC (permalink / raw)
  To: gcc-bugs

[bdavis@gfortran ac_avionics]$ cat a.f
       REAL*4 EW
       REAL*8 ED
       REAL*4 TEMP
       TEMP = ATAN2(EW,ED)
       END
[bdavis@gfortran ac_avionics]$ g77 a.f
[bdavis@gfortran ac_avionics]$ gfortran a.f
 In file a.f:4

       TEMP = ATAN2(EW,ED)
                      1
Error: 'x' argument of 'atan2' intrinsic at (1) must be the same type and kind
as 'y'
[bdavis@gfortran ac_avionics]$ gfortran --version
GNU Fortran 95 (GCC) 4.2.0 20060311 (experimental)
Copyright (C) 2006 Free Software Foundation, Inc.

GNU Fortran comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of GNU Fortran
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING


i will let the language lawyers decide if this is a bug or if g77 was too
lenient.


-- 
           Summary: requires both arguments to ATAN2 to be of same type
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bdavis at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/26815] requires both arguments to ATAN2 to be of same type
  2006-03-23  0:09 [Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type bdavis at gcc dot gnu dot org
@ 2006-03-23  5:45 ` pault at gcc dot gnu dot org
  2006-03-25 16:05 ` kargl at gcc dot gnu dot org
  2006-05-01  1:51 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-03-23  5:45 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pault at gcc dot gnu dot org  2006-03-23 05:45 -------
Bud,

SIGN is the same - I just changed ~50 instances of mixed arguments in a code
that is as old as the mountains.  gfortran is correct but......

Paul


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/26815] requires both arguments to ATAN2 to be of same type
  2006-03-23  0:09 [Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type bdavis at gcc dot gnu dot org
  2006-03-23  5:45 ` [Bug fortran/26815] " pault at gcc dot gnu dot org
@ 2006-03-25 16:05 ` kargl at gcc dot gnu dot org
  2006-05-01  1:51 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-03-25 16:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from kargl at gcc dot gnu dot org  2006-03-25 16:05 -------
As Paul stated gfortan is correct.  The standard says for ATAN2(Y,X) that
Y    shall be of type real.
X    shall be of the same type and kind type parameter as Y.

Does anyone oppose closing this report?


-- 


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug fortran/26815] requires both arguments to ATAN2 to be of same type
  2006-03-23  0:09 [Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type bdavis at gcc dot gnu dot org
  2006-03-23  5:45 ` [Bug fortran/26815] " pault at gcc dot gnu dot org
  2006-03-25 16:05 ` kargl at gcc dot gnu dot org
@ 2006-05-01  1:51 ` pinskia at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-05-01  1:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-05-01 01:51 -------
(In reply to comment #2)
> Does anyone oppose closing this report?

No objections in one month so I am assuming it is ok to close this as invalid.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-01  1:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-23  0:09 [Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type bdavis at gcc dot gnu dot org
2006-03-23  5:45 ` [Bug fortran/26815] " pault at gcc dot gnu dot org
2006-03-25 16:05 ` kargl at gcc dot gnu dot org
2006-05-01  1:51 ` pinskia at gcc dot gnu dot org

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).