Bug 2199 – Segfault using array operation in function call

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
x86
OS
Windows
Creation time
2008-07-07T01:57:00Z
Last change time
2014-02-24T15:59:58Z
Keywords
ice-on-invalid-code, patch
Assigned to
bugzilla
Creator
clugdbug

Comments

Comment #0 by clugdbug — 2008-07-07T01:57:21Z
/* bug.d(4): Error: Array operations not implemented SEGFAULT */ void b(int [] a) { b(a + a); }
Comment #1 by davidl — 2008-07-07T06:33:04Z
i think this bug is also related to 1511? http://d.puremagic.com/issues/show_bug.cgi?id=1511
Comment #2 by clugdbug — 2009-02-03T08:04:33Z
*** Bug 2637 has been marked as a duplicate of this bug. ***
Comment #3 by clugdbug — 2009-04-02T10:47:33Z
Problem is in elem *AddExp::toElem(IRState *irs) e2ir.c, line 1925 -- returns an uninitialized variable e. error("Array operation %s not implemented", toChars()); return e1->toElem(irs); // prevent segfault
Comment #4 by clugdbug — 2009-04-18T01:04:39Z
Fixed DMD2.028. Not yet fixed in D1.
Comment #5 by bugzilla — 2009-05-02T08:50:54Z
Fixed dmd 1.044