[Issue 12831] New: assert incorrectly fails on to!float conversion
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat May 31 18:57:22 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=12831
Issue ID: 12831
Summary: assert incorrectly fails on to!float conversion
Product: D
Version: D2
Hardware: x86
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: mk at krej.cz
import std.conv;
void main()
{
float a = 1.234f;
float b = to!float("1.234");
assert (a == b);
assert (a == to!float("1.234")); //fails
}
DMD32 D Compiler v2.066-devel-38c5c36
Works in gdc. Also works with real.
--
More information about the Digitalmars-d-bugs
mailing list