[Issue 534] New: IPF trying to initialize an associative array

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Nov 16 16:41:59 PST 2006


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 at digitalmars.com
        ReportedBy: smjg at 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.


-- 




More information about the Digitalmars-d-bugs mailing list