www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Type-safe Variadic Functions Bug

reply "John C" <johnch_atms hotmail.com> writes:
The following code produces Assertion failure: '!vthis->csym' on line 355 in 
file 'glue.c'

class Test1 {

    this(int[] params ...) {
    }
}

class Test2 {

    this() {
        init();
    }

    private void init() { // removing "private" fixes the error
        Test1 test1 = new Test1(1, 2, 3);
    }

}

DMD 0.133 Windows XP SP2 
Sep 28 2005
parent =?UTF-8?B?VGhvbWFzIEvDvGhuZQ==?= <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John C schrieb:
 The following code produces Assertion failure: '!vthis->csym' on line 355 in 
 file 'glue.c'
 
 class Test1 {
 
     this(int[] params ...) {
     }
 }
 
 class Test2 {
 
     this() {
         init();
     }
 
     private void init() { // removing "private" fixes the error
         Test1 test1 = new Test1(1, 2, 3);
     }
 
 }
 
 DMD 0.133 Windows XP SP2 
Added to DStress as http://dstress.kuehne.cn/run/b/bug_glue_355_A.d http://dstress.kuehne.cn/run/b/bug_glue_355_B.d http://dstress.kuehne.cn/run/b/bug_glue_355_C.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFDO4Dl3w+/yD4P9tIRApoSAKC0euAdtNh2QqMDA7pxHr7/3V5EgACg0CKe MtPbhCgRTemFpVeIMgNF1zk= =C4uN -----END PGP SIGNATURE-----
Sep 28 2005