This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40290] New: Questionable warning for REAL*COMPLEX with -Wconversion
- From: "anlauf at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 May 2009 11:20:42 -0000
- Subject: [Bug fortran/40290] New: Questionable warning for REAL*COMPLEX with -Wconversion
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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