[Issue 524] Compiler crash when compiling

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Nov 26 05:25:18 PST 2006


http://d.puremagic.com/issues/show_bug.cgi?id=524





------- Comment #3 from lovesyao at hotmail.com  2006-11-26 07:25 -------
I think that this bug is caused in nested template class.
I made simple testcase:

static class Test{
  void test(T)() {
      new Inner!(T)();
  }
  class Inner(T) {
    void test(){ new Inner!(T)();}//maybe this is causing infinite loop
  }
}


void test(T)(){new Test2!(T)();}
class Test2(T) {
  void test(){ new Test2!(T)();}
}

void main(){
  test!(int);//ok
  (new Test).test!(int);//crash
}


-- 




More information about the Digitalmars-d-bugs mailing list