Thread overview
[Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525
Sep 27, 2006
d-bugmail
Sep 29, 2006
Thomas Kuehne
Oct 10, 2006
d-bugmail
September 27, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=381

           Summary: array literals are broken; Internal error: ..\ztc\cod1.c
                    2525
           Product: D
           Version: 0.167
          Platform: PC
        OS/Version: Windows
            Status: NEW
          Keywords: ice-on-valid-code, wrong-code
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla@digitalmars.com
        ReportedBy: h3r3tic@mat.uni.torun.pl


void foo(...) {
}


void main() {
        int[] arr;
        arr = [1] ~ 2;

        // runtime crash, the length == 1
        assert (arr.length == 2);

        // compile-time crash
        foo([1] ~ 2);
}


-- 

September 29, 2006
d-bugmail@puremagic.com schrieb am 2006-09-27:
> http://d.puremagic.com/issues/show_bug.cgi?id=381

> void foo(...) {
> }
>
>
> void main() {
>         int[] arr;
>         arr = [1] ~ 2;
>
>         // runtime crash, the length == 1
>         assert (arr.length == 2);
>
>         // compile-time crash
>         foo([1] ~ 2);
> }

An additional message triggered on Linux is:
Internal error: ../ztc/cgcod.c 1504

Added to DStress as http://dstress.kuehne.cn/run/o/opCat_24_A.d http://dstress.kuehne.cn/run/o/opCat_24_B.d http://dstress.kuehne.cn/run/o/opCat_24_C.d http://dstress.kuehne.cn/run/o/opCat_24_D.d

Thomas


October 10, 2006
http://d.puremagic.com/issues/show_bug.cgi?id=381


bugzilla@digitalmars.com changed:

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




------- Comment #2 from bugzilla@digitalmars.com  2006-10-10 03:28 -------
Fixed DMD 0.169


--