Thread overview |
---|
November 17, 2006 [Issue 534] New: IPF trying to initialize an associative array | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=534 Summary: IPF trying to initialize an associative array Product: D Version: 0.174 Platform: PC OS/Version: Windows Status: NEW Keywords: ice-on-valid-code, spec Severity: normal Priority: P2 Component: DMD AssignedTo: bugzilla@digitalmars.com ReportedBy: smjg@iname.com When you tried to initialize an associative array, once upon a time the compiler would simply error. But now, it generates an IPF. ---------- static int[int] yuiop = [ 4: 5, 10: 6, 69: 30 ]; ---------- DMD caused an invalid page fault in module DMD.EXE at 0167:004af11d. Registers: EAX=5b740369 CS=0167 EIP=004af11d EFLGS=00010202 EBX=00000073 SS=016f ESP=0073fc1c EBP=0073fcc4 ECX=5b746e69 DS=016f ESI=00000800 FS=56cf EDX=0073fcd8 ES=016f EDI=004e7a20 GS=0000 Bytes at CS:EIP: 8a 01 41 84 c0 75 b2 8d 41 ff 8b 4c 24 04 29 c8 Stack dump: 004b033f 5b746e69 004c15b8 0075c058 004e7a88 00000094 00000007 00000094 0000001f 73677562 7272615c 00000000 00000000 ffffffc6 00000000 00000000 ---------- My filing it as ice-on-valid-code is rather loose - really, D should allow this, but the spec doesn't make it clear one way or the other. -- |
December 03, 2006 [Issue 534] IPF trying to initialize an associative array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=534 deewiant@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Keywords|ice-on-valid-code |ice-on-invalid-code Resolution| |FIXED ------- Comment #1 from deewiant@gmail.com 2006-12-03 03:38 ------- Fixed in DMD 0.176. Changed to ice-on-invalid-code since the compiler errors on it, as it used to. -- |
December 31, 2006 [Issue 534] IPF trying to initialize an associative array | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/issues/show_bug.cgi?id=534 ------- Comment #2 from thomas-dloop@kuehne.cn 2006-12-30 20:09 ------- Added to DStress as http://dstress.kuehne.cn/nocompile/a/associative_array_22_A.d -- |
Copyright © 1999-2021 by the D Language Foundation