public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/19999] New: -Wfloat-equal does not warn for complex numbers
@ 2005-02-16 14:30 jsm28 at gcc dot gnu dot org
  2005-02-16 14:56 ` [Bug c/19999] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 4+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2005-02-16 14:30 UTC (permalink / raw)
  To: gcc-bugs

-Wfloat-equal warns for comparison of real floating-point numbers,
but not for complex numbers.

double a, b;
_Complex double c, d;
int f(void) { return a == b; }
int g(void) { return c == d; }

warns for the comparison in f, but not for that in g.

-- 
           Summary: -Wfloat-equal does not warn for complex numbers
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-02-22  6:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-19999-230@http.gcc.gnu.org/bugzilla/>
2008-02-21  6:30 ` [Bug c/19999] -Wfloat-equal does not warn for complex numbers rwild at gcc dot gnu dot org
2008-02-22  6:19 ` rwild at gcc dot gnu dot org
2008-02-22  6:19 ` rwild at gcc dot gnu dot org
2005-02-16 14:30 [Bug c/19999] New: " jsm28 at gcc dot gnu dot org
2005-02-16 14:56 ` [Bug c/19999] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).