[Issue 6258] New: std.conv.to!real("-") fetches the front of an empty array.
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Wed Jul 6 07:48:56 PDT 2011
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: nobody at puremagic.com
ReportedBy: kajetan.rzepecki at gmail.com
--- Comment #0 from Kajtek <kajetan.rzepecki at 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: -------
More information about the Digitalmars-d-bugs
mailing list