[Issue 5999] Inconsistent equality with array of NaNs between runtime and CTFE

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 14 14:27:12 PDT 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5999


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au


--- Comment #2 from Don <clugdbug at yahoo.com.au> 2011-06-14 14:22:33 PDT ---
(In reply to comment #1)
> At the risk of stating the obvious, the correct result for a NaN compared to
> itself is false. I would assume (correct me if I'm wrong) that an array of NaN
> compared to itself would therefore also be false, since each element is != to
> itself. 

Yes.

>That is, the runtime assert is correct and the CTFE is incorrect.

I think you misread the code. CTFE returns not equal, runtime returns equal.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list