www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2199] New: Segfault using array operation in function call

reply d-bugmail puremagic.com writes:
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);
}


-- 
Jul 06 2008
next sibling parent d-bugmail puremagic.com writes:
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


-- 
Jul 07 2008
prev sibling next sibling parent d-bugmail puremagic.com writes:
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. ***


-- 
Feb 03 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
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


-- 
Apr 02 2009
prev sibling next sibling parent d-bugmail puremagic.com writes:
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.


-- 
Apr 17 2009
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
May 02 2009