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

2012-01-20 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5999


Walter Bright  changed:

   What|Removed |Added

 CC||bugzi...@digitalmars.com


--- Comment #3 from Walter Bright  2012-01-20 
22:05:03 PST ---
Yes, the runtime is in error here.

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


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

2011-06-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5999


Don  changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au


--- Comment #2 from Don  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: ---


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

2011-06-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=5999


Paul D. Anderson  changed:

   What|Removed |Added

 CC||paul.d.ander...@comcast.net


--- Comment #1 from Paul D. Anderson  2011-06-14 
14:01:19 PDT ---
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. That is, the runtime assert is correct and the CTFE is incorrect.

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