January 24, 2006
C:\code\d\bugs>type 144_1.d
// this code causes a compiler GPF

template fn( T ) {
    void fn() {
    }
}

template fn( T ) {
    void fn( T val ) {
    }
}

void main() {
    fn!(int)( 1 );
}
C:\code\d\bugs>dmd 144_1
144_1.d(8):
C:\code\d\bugs>
January 25, 2006
Sean Kelly schrieb am 2006-01-24:
> C:\code\d\bugs>type 144_1.d
> // this code causes a compiler GPF
>
> template fn( T ) {
>      void fn() {
>      }
> }
>
> template fn( T ) {
>      void fn( T val ) {
>      }
> }
>
> void main() {
>      fn!(int)( 1 );
> }
> C:\code\d\bugs>dmd 144_1
> 144_1.d(8):
> C:\code\d\bugs>

I can't reproduce this with DMD-0.144 on Linux.

Added to DStress as http://dstress.kuehne.cn/nocompile/t/template_25_A.d http://dstress.kuehne.cn/nocompile/t/template_25_B.d http://dstress.kuehne.cn/nocompile/t/template_struct_07.d http://dstress.kuehne.cn/nocompile/t/template_class_17.d

Thomas