This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56887] New: Test for equality of reals now flagged with a warning
- From: "fkrogh#gcc at mathalacarte dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 08 Apr 2013 23:23:06 +0000
- Subject: [Bug fortran/56887] New: Test for equality of reals now flagged with a warning
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56887
Bug #: 56887
Summary: Test for equality of reals now flagged with a warning
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: fkrogh#gcc@mathalacarte.com
This is not a bug, but is a nuisance. I like to compile with -Wall -Wextra
and after starting to use 4.8.0, tests for equality between reals is flagged
with a warning. Perhaps you consider it a bad habit to assign small integer
values (usually 0) to real variables and and occasionally test for equality on
those. For me this warning is a nuisance, and I would like a way to turn it
off without losing the benefits of -WALL and -Wextra. Alternatively just have
it work as it did in the 4.7 series.
Thanks,
Fred