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.
Created attachment 50 [details] Trying to compile attachment makes compiler crashing...
After some testing it occurred that this regression was introduced in 0.173. 0.172 works fine.
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 }
Fixed in DMD 0.176.
Added to DStress as http://dstress.kuehne.cn/run/t/template_class_19_A.d
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル