[Issue 4700] New: to!float("0") fails

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Aug 21 01:32:37 PDT 2010


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

           Summary: to!float("0") fails
           Product: D
           Version: D2
          Platform: x86_64
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: olaa81 at gmail.com


--- Comment #0 from Ola Østtveit <olaa81 at gmail.com> 2010-08-21 01:32:34 PDT ---
import std.conv;
auto zero = to!double("0");

fails with
core.exception.AssertError at f:\dmd2\windows\bin\..\..\src\phobos\std\array.d(362):
Attempting to fetch the front of an empty array

It doesn't matter if you convert to float, double or real.
Converting ".0" and "0.0" works fine.

It works fine on dmd-2.042.

-- 
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