This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/26815] New: requires both arguments to ATAN2 to be of same type


[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]