[Issue 2603] ICE on subtracting string literals

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue May 5 14:33:43 PDT 2009


http://d.puremagic.com/issues/show_bug.cgi?id=2603


clugdbug at yahoo.com.au changed:

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




------- Comment #1 from clugdbug at 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.


-- 



More information about the Digitalmars-d-bugs mailing list