Thread overview
[Issue 2199] New: Segfault using array operation in function call
Jul 07, 2008
d-bugmail
Jul 07, 2008
d-bugmail
Feb 03, 2009
d-bugmail
Apr 02, 2009
d-bugmail
Apr 18, 2009
d-bugmail
May 02, 2009
d-bugmail
July 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2199

           Summary: Segfault using array operation in function call
           Product: D
           Version: 1.031
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: clugdbug@yahoo.com.au


/*
bug.d(4): Error: Array operations not implemented
SEGFAULT
*/

void b(int [] a) {
    b(a + a);
}


-- 

July 07, 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2199





------- Comment #1 from davidl@126.com  2008-07-07 06:33 -------
i think this bug is also related to 1511? http://d.puremagic.com/issues/show_bug.cgi?id=1511


-- 

February 03, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2199





------- Comment #2 from clugdbug@yahoo.com.au  2009-02-03 08:04 -------
*** Bug 2637 has been marked as a duplicate of this bug. ***


-- 

April 02, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2199


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch




------- Comment #3 from clugdbug@yahoo.com.au  2009-04-02 10:47 -------
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


-- 

April 18, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2199





------- Comment #4 from clugdbug@yahoo.com.au  2009-04-18 01:04 -------
Fixed DMD2.028. Not yet fixed in D1.


-- 

May 02, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2199


bugzilla@digitalmars.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Comment #5 from bugzilla@digitalmars.com  2009-05-02 08:50 -------
Fixed dmd 1.044


--