Following code cause dmd to crash. struct A { } A MakeA() { return ; } static const A aInstance = MakeA(); with dmd versions 1.015 & 1.021
Is that the correct code? It's not a template. (If DMD chokes it's still a bug) Does the CTFE make a difference?
yes the code is (in)correct. I thought it was a template bug to start with, but I pared it down to above. I missed the fact it's no longer a template... never submit a bug report after a beer.
Added to DStress as http://dstress.kuehne.cn/nocompile/r/return_11_A.d http://dstress.kuehne.cn/nocompile/r/return_11_B.d http://dstress.kuehne.cn/nocompile/r/return_11_C.d http://dstress.kuehne.cn/nocompile/r/return_11_D.d http://dstress.kuehne.cn/nocompile/r/return_11_E.d http://dstress.kuehne.cn/nocompile/r/return_11_F.d http://dstress.kuehne.cn/nocompile/r/return_11_G.d
Fixed dmd 1.023 and 2.007
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル