[Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type
bdavis at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Mar 23 00:09:00 GMT 2006
[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
More information about the Gcc-bugs
mailing list