This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/56887] New: Test for equality of reals now flagged with a warning


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]