September 28, 2005
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


September 29, 2005
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