public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47706] New: std::min/max and NaN
@ 2011-02-11 20:15 dieter.lucking at googlemail dot com
  2011-02-12  1:55 ` [Bug c++/47706] " paolo.carlini at oracle dot com
  2011-02-12  6:27 ` paolo.carlini at oracle dot com
  0 siblings, 2 replies; 3+ messages in thread
From: dieter.lucking at googlemail dot com @ 2011-02-11 20:15 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: std::min/max and NaN
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dieter.lucking@googlemail.com


This seems to be a contradiction:

((0.0 < std::numeric_limits<double>::quiet_NaN()) ? 0.0 :
std::numeric_limits<double>::quiet_NaN()) => `nan'

std::min(0.0, std::numeric_limits<double>::quiet_NaN()) => `0'


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

end of thread, other threads:[~2011-02-12  1:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-11 20:15 [Bug c++/47706] New: std::min/max and NaN dieter.lucking at googlemail dot com
2011-02-12  1:55 ` [Bug c++/47706] " paolo.carlini at oracle dot com
2011-02-12  6:27 ` paolo.carlini at oracle dot com

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).