Line (1) causes a segfault. Line (2) causes an ICE. Dsymbol::toSymbol() 'var1', kind = 'alias' Assertion failure: '0' on line 103 in file 'tocsym.c' -------- void a(X...)(X expr) { alias X[0] var1; asm { fld double ptr X[0]; // (1) segfaults fstp double ptr var1; // (2) ICE } } void main() { a(3.6); }
Added to DStress as http://dstress.kuehne.cn/run/t/tuple_19_A.d
The situation shown in the test case was fixed in DMD 1.011. The ICE seems to be genuinely fixed, but the segfault still occurs in slightly more complex examples. I've created issue #1125 for those.
Fixed dmd 1.011 But the X[0] must be replaced with expr[0].
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル