This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/44055] New: Warn (-Wconversion*) when converting single to double precision
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2010 10:37:27 -0000
- Subject: [Bug fortran/44055] New: Warn (-Wconversion*) when converting single to double precision
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
With the patch http://gcc.gnu.org/ml/fortran/2010-05/msg00067.html (for PR
27866, PR 35003, PR 42809) the number of conversion warnings has drastically
been cut down by drastically cutting down the number of unintended warnings.
However, it no longer warns for
real(8) :: sqrt2
sqrt2 = sqrt(2.0)
where one has the precision loss due to forgetting to use "2.0_8" / "2.0d0"
instead of "2.0"; cf. PR 27866.
The idea is to add another -W* flag which finds those problems. Finding the
corresponding -W* flag will be made easier using PR 44054.
I think both the -Wconversion and the new -Wconversion-* warning should be
enabled with -Wall.
--
Summary: Warn (-Wconversion*) when converting single to double
precision
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
BugsThisDependsOn: 44054
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44055