[Issue 7455] New: narrowing float cast skipped for x87 values
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Feb 6 19:46:55 PST 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7455
Summary: narrowing float cast skipped for x87 values
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2012-02-06 19:46:54 PST ---
int main()
{
real a = 1.0L + float.epsilon;
if (cast(float)(a + 1.0L) > 2.0L)
return 1;
return 0;
}
-----
cast(float) is skipped
-----
A similar test with double and SSE works correctly.
--
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