Bug 11281 – Range violation for associative array with Nullable!SysTime values

Status
RESOLVED
Resolution
FIXED
Severity
regression
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Linux
Creation time
2013-10-16T04:33:00Z
Last change time
2013-10-19T23:40:58Z
Assigned to
nobody
Creator
kroeplin.d

Comments

Comment #0 by kroeplin.d — 2013-10-16T04:33:55Z
With dmd 2.064 (beta 1), the following code results in a Range violation: unittest { import std.datetime; import std.typecons; Nullable!SysTime[string] aa = null; aa["foo"] = Clock.currTime; } core.exception.RangeError: Range violation With dmd 2.063.2, the unittest passes.
Comment #1 by k.hara.pg — 2013-10-19T11:55:14Z
Hmm. RangeError does not occur with 2.064 beta2 and git-head. http://forum.dlang.org/thread/[email protected]
Comment #2 by k.hara.pg — 2013-10-19T23:40:58Z
OK, confirmed. The root cause of this issue is mostly same with bug 10357, and it has been fundamentally fixed from 2.064beta2.