Code: struct S(T...) { S opMul_r(real r) { return S(); } S!(1) opDiv(R)(R r) { return S!(1)(); } } void main() { S!(1) a; S!(0) b; auto c = 1 * a / b; } --- dmd bug.d -> compiles fine dmd -inline bug.d -> bug.d(2): Error: S() is not an lvalue
Fixed in 1.017
Added to DStress as http://dstress.kuehne.cn/run/t/tuple_25_A.d http://dstress.kuehne.cn/run/t/tuple_25_B.d http://dstress.kuehne.cn/run/t/tuple_25_C.d
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル