January 22, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2603

           Summary: ICE on subtracting string literals
           Product: D
           Version: 1.033
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: tomas@famolsen.dk


module foobar;
void main() {
   char[] c = "a" - "b";
}

// $ dmd foobar.d
// Internal error: ../ztc/cgcs.c 358


-- 

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


clugdbug@yahoo.com.au changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid, patch,
                   |                            |wrong-code




------- Comment #1 from clugdbug@yahoo.com.au  2009-05-05 16:33 -------
The string literal case doesn't segfault on D2.029, it generates wrong code instead. But a related case also segfaults (still in ..\backend\cgcs.c 358) on D1 and D2.

void main() {
   auto c = [1,2,3]-[1,2,3];
}
---
PATCH(e2ir.c, line 1955), in elem *MinExp::toElem(IRState *irs)
just copy code from AddExp::toElem(IRState *irs), changing OPadd into OPmin on
the last line.


-- 

July 09, 2009
http://d.puremagic.com/issues/show_bug.cgi?id=2603


Walter Bright <bugzilla@digitalmars.com> changed:

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




--- Comment #2 from Walter Bright <bugzilla@digitalmars.com>  2009-07-09 02:47:36 PDT ---
Fixed dmd 1.046 and 2.031

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home