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

           Summary: std.conv.to!real("-") fetches the front of an empty
                    array.
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nob...@puremagic.com
        ReportedBy: kajetan.rzepe...@gmail.com


--- Comment #0 from Kajtek <kajetan.rzepe...@gmail.com> 2011-07-06 07:43:52 PDT 
---
Instead it should throw ConvException.
Some code and versions:


import std.conv;
void main() {
    to!real("-");
    //GDC hg, using dmd 2.052 core.exception.AssertError@/.../std/array.d(373):
Attempting to fetch the front of an empty array
    //DMD32 D Compiler v2.053 core.exception.AssertError@/.../std/array.d(372):
Attempting to fetch the front of an empty array
    //GNU/Linux i686
}

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

Reply via email to