Bug 534 – IPF trying to initialize an associative array

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2006-11-16T18:41:00Z
Last change time
2014-02-15T13:19:18Z
Keywords
ice-on-invalid-code, spec
Assigned to
bugzilla
Creator
smjg

Comments

Comment #0 by smjg — 2006-11-16T18:41:58Z
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.
Comment #1 by matti.niemenmaa+dbugzilla — 2006-12-03T03:38:01Z
Fixed in DMD 0.176. Changed to ice-on-invalid-code since the compiler errors on it, as it used to.
Comment #2 by thomas-dloop — 2006-12-30T20:09:30Z