Hi,

the following warning appears questionable:

subroutine gfcbug87
  implicit none
  real    :: x
  complex :: c
  c = c * x
end subroutine gfcbug87


gfcbug87.f90:5.11:

  c = c * x
           1
Warning: Conversion from REAL(4) to COMPLEX(4) at (1)


There are really no kind conversions involved.  In fact, I do even hope
that the optimizer knowns that REAL*COMPLEX is a much cheaper operation
than the full COMPLEX*COMPLEX implied by the warning.


-- 
           Summary: Questionable warning for REAL*COMPLEX with -Wconversion
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anlauf at gmx dot de


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

Reply via email to