[Issue 5649] New: std.conv.parse faulty for floating point with -O -m32
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Feb 23 20:35:44 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=5649
Summary: std.conv.parse faulty for floating point with -O -m32
Product: D
Version: D2
Platform: x86_64
OS/Version: Linux
Status: NEW
Severity: major
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: acehreli at yahoo.com
--- Comment #0 from Ali Cehreli <acehreli at yahoo.com> 2011-02-23 20:33:02 PST ---
The following assert fails when compiled with dmd's command line options -O
-m32:
import std.conv;
void main()
{
char[] input = "1.5e3".dup;
assert(1500 == parse!double(input)); // <-- FAILS
}
It fails for float and real as well.
Please note that this combination works: -O -m64
Ali
--
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