The following code does not compile

      program bug
      implicit none
      double complex blop
      double precision blopr
      blopr=imag(blop)
      blopr=sin(blop)
      end

removing "implicit none" will let the code to compile. The compiler accepts sin 
as a generic function but 
not imag.

-- 
           Summary: IMAG is not a generic function when implicit none is
                    declared
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: federico dot carminati at cern dot ch
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: darwin Kernel Version 7.8.0; root:xnu/xnu-
                    517.11.1.obj~1/RELEASE


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

Reply via email to