This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type
- From: "bdavis at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Mar 2006 00:09:12 -0000
- Subject: [Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
[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