[llvm-bugs] [Bug 43777] New: FP initializer using SNAN in expression
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Oct 23 09:23:18 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43777
Bug ID: 43777
Summary: FP initializer using SNAN in expression
Product: clang
Version: 8.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: tydeman at tybor.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
It appears that an expression using any of the SNAN (signaling NaN) macros used
as the initializer of a floating-point variable is left as a SNAN. For
example:
static double d = SNAN + 3.; /* should be a quiet NAN */
The intent is only SNAN, +SNAN, -SNAN should be signaling NaNs, while any other
expression using a signaling NaN should be a quiet NaN.
--
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/20191023/05834233/attachment.html>
More information about the llvm-bugs
mailing list