← Back to index
|
Original Bugzilla link
Bug 8628 – IntegerExp::toInteger(): Assertion `0' failed
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-09-07T15:11:00Z
Last change time
2013-01-10T20:40:12Z
Keywords
ice
Assigned to
nobody
Creator
ellery-newcomer
Comments
Comment #0
by ellery-newcomer — 2012-09-07T15:11:01Z
dmd 2.060 x64 linux code: //a.d import b; void main() { d_type!double(null); } //b.d T d_type(T) () { Dim!T.initArr; } template Dim(T) { int[] tuple2arr()() { } bool check() { if(dims) return false; } enum int[] dims = tuple2arr!()(); } compile: dmd b a produces fireworks: e = 0x220d6b0, ty = 35 _error_ 0x21845a0 dmd: expression.c:2073: virtual dinteger_t IntegerExp::toInteger(): Assertion `0' failed. Aborted (core dumped)
Comment #1
by deadalnix — 2012-12-02T01:30:58Z
I confirm the bug. It showed up today in some D dev of my own. Stopping dustmite as it have been reported already.
Comment #2
by andrej.mitrovich — 2013-01-10T16:45:29Z
I can't reproduce with 2.061 on x86 win32. (I can reproduce on 2.060). Please verify on x64 and then mark as WORKSFORME if it's solved.
Comment #3
by ellery-newcomer — 2013-01-10T20:40:12Z
Doesn't show in linux, 32 or 64 bit.