[Bug fortran/18565] New: gfortran: CONJG: false error message about standard violation

anlauf at hep dot tu-darmstadt dot de gcc-bugzilla@gcc.gnu.org
Fri Nov 19 13:07:00 GMT 2004


Hi,

the following program gives a false error message when compiled
with "gfortran -std=f95":

integer, parameter :: dp = kind (1.d0)
complex(dp) :: z1, z2
z1 = (0._dp, 1._dp)
z2 = conjg (z1)
print *, z1, z2
end


I get:

 In file gfcbug21.f90:4

z2 = conjg (z1)
           1
Error: Type of argument 'z' in call to 'conjg' at (1) should be COMPLEX(4), not
COMPLEX(8)


This is clearly wrong.  According to my copy of Metcalf&Reid,
CONJG is a generic elemental function.

Cheers,
-ha

-- 
           Summary: gfortran: CONJG: false error message about standard
                    violation
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at hep dot tu-darmstadt dot de
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-pc-cygwin


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



More information about the Gcc-bugs mailing list