www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 699] New: long variadic arguments and the "-profile" flag

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=699

           Summary: long variadic arguments and the "-profile" flag
           Product: D
           Version: 0.178
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla digitalmars.com
        ReportedBy: funisher gmail.com


might be related to #698

I get this error:

Internal error: ../ztc/cod3.c 1488

You can reproduce it with this:

// needs -profile flag
template LaLa(E...) {
        class LaLa {
                this() {

                }
        }
}

void main() {
        // doesn't work
        new LaLa!("lala", "lalalalala", "lala",
                "lala", "lala", "lala", "lalalala",
                "lala", "lala", "lala", "lalala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala");
}


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

d-bugmail puremagic.com schrieb am 2006-12-19:
 http://d.puremagic.com/issues/show_bug.cgi?id=699

 might be related to #698

 I get this error:

 Internal error: ../ztc/cod3.c 1488

 You can reproduce it with this:

 // needs -profile flag
 template LaLa(E...) {
         class LaLa {
                 this() {

                 }
         }
 }

 void main() {
         // doesn't work
         new LaLa!("lala", "lalalalala", "lala",
                 "lala", "lala", "lala", "lalalala",
                 "lala", "lala", "lala", "lalala",
                 "lala", "lala", "lala", "lala",
                 "lala", "lala", "lala", "lala",
                 "lala", "lala", "lala", "lala",
                 "lala", "lala", "lala", "lala");
 }

I can't reproduce this with DMD-0.178 on Linux. Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFkRoaLK5blCcjpWoRAkqQAJ9A8rSfkx8Bk6cvA7FRYfzG81BeUwCgnMlI xwixK6F9sz8tGO9TMenCV/A= =sNWq -----END PGP SIGNATURE-----
Dec 26 2006
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=699





------- Comment #2 from funisher gmail.com  2006-12-26 11:46 -------
Hi Thomas, it still exists for me... btw, did you get my email about the array
init test?

L3 ~ # cat test.d 
// needs -profile flag
template LaLa(E...) {
        class LaLa {
                this() {

                }
        }
}

void main() {
        // doesn't work
        new LaLa!("lala", "lalalalala", "lala",
                "lala", "lala", "lala", "lalalala",
                "lala", "lala", "lala", "lalala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala",
                "lala", "lala", "lala", "lala");

}
L3 ~ # dmd -profile test.d 
Internal error: ../ztc/cod3.c 1488
L3 ~ # dmd -v
Digital Mars D Compiler v0.178
Copyright (c) 1999-2006 by Digital Mars written by Walter Bright


-- 
Dec 26 2006
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=699


bugzilla digitalmars.com changed:

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




------- Comment #3 from bugzilla digitalmars.com  2007-01-03 22:05 -------
Fixed DMD 1.00


-- 
Jan 03 2007