Trying to compile attachment makes compiler crashing...
application/octet-stream
1995
Comments
Comment #0 by aarti — 2006-11-15T16:42:27Z
boost::any implementation in d has a bad luck... It was already not linking when compiling as separate files (bug #384), and in 0.174 compiler just crashes when trying to compile it... Binary is not produced. I could not gather much more info than above, so I attache test files.
Comment #1 by aarti — 2006-11-15T16:46:10Z
Created attachment 50
Trying to compile attachment makes compiler crashing...
Comment #2 by aarti — 2006-11-26T05:45:31Z
After some testing it occurred that this regression was introduced in 0.173. 0.172 works fine.
Comment #3 by lovesyao — 2006-11-26T07:25:17Z
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
}
Comment #4 by matti.niemenmaa+dbugzilla — 2006-12-03T03:40:50Z