[LLVMbugs] [Bug 18218] incorrect implementation of isnan and similar functions

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 7 17:54:50 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=18218

Marshall Clow (home) <mclow.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Marshall Clow (home) <mclow.lists at gmail.com> ---
(In reply to comment #0)

> The template should be enabled for every type that is convertible to an
> arithmetic type, to make the implementation indistinguishable from what is
> specified in the standard.

After some research, and talking to a bunch of people, I have come to the
conclusion that this is incorrect.

This is LWG issue #2086 - http://cplusplus.github.io/LWG/lwg-defects.html#2086,
and the discussion there is quite clear: 

      The only valid types that can be passed to isnan (and others in <cmath>)
are arithmetic types; i.e, the built-in integral and floating point types. No
user-defined types.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150408/955910af/attachment.html>


More information about the llvm-bugs mailing list