Bug 9494 – compiler stack overflow on invalid associative array

Status
RESOLVED
Resolution
FIXED
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-10T01:37:00Z
Last change time
2013-02-19T00:56:35Z
Keywords
ice, pull
Assigned to
nobody
Creator
vertigo80

Comments

Comment #0 by vertigo80 — 2013-02-10T01:37:12Z
Compiler crashes with stack overflow on this invalid piece of code: int[test] test; void main(string[] args) { } This only happens if 'test' is used for both index type and array name.
Comment #1 by andrej.mitrovich — 2013-02-10T12:35:29Z
Comment #2 by andrej.mitrovich — 2013-02-14T06:05:47Z
Not a good pull, will require more work.
Comment #3 by k.hara.pg — 2013-02-18T20:29:29Z