www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 381] New: array literals are broken; Internal error: ..\ztc\cod1.c 2525

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


-- 
Sep 27 2006
next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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 -----BEGIN PGP SIGNATURE----- iD8DBQFFHDBMLK5blCcjpWoRAveEAJ9u12E9nm+oEH634kXDNLhlcFjpuwCfe26/ plId/SYmuhSqyKLywo7L7LM= =USzF -----END PGP SIGNATURE-----
Sep 29 2006
prev sibling parent d-bugmail puremagic.com writes:
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


-- 
Oct 10 2006