[Issue 174] segfault with class member template function

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Nov 18 19:20:33 PST 2006


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





------- Comment #1 from lovesyao at hotmail.com  2006-11-18 21:20 -------
I also met this bug. More simple testcase:

class Test{
  template test(){
    const int test=1;
  }
}

void main(){
  assert(Test.test!()==1);//ok
  assert((new Test).test!()==1);//failed
}


-- 




More information about the D.gnu mailing list