// credit goes to http://pc8.2ch.net/test/read.cgi/tech/1158013550/956 T* f(T...)(T x) { return null; } void main() { auto x = f(2,3,4); *x = *x; } ---------------- Assertion failure: '0' on line 697 in file 'glue.c' abnormal program termination Although dmd 0.176 prohibits tuple return types, it still seems to suffer pointers-to-tuple, arrays-of-tuple, etc.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 d-bugmail@puremagic.com schrieb am 2006年12月03日: > http://d.puremagic.com/issues/show_bug.cgi?id=639 > // credit goes to http://pc8.2ch.net/test/read.cgi/tech/1158013550/956 > T* f(T...)(T x) { > return null; > } > void main() { > auto x = f(2,3,4); > *x = *x; > } > ---------------- > Assertion failure: '0' on line 697 in file 'glue.c' > > abnormal program termination > > > Although dmd 0.176 prohibits tuple return types, > it still seems to suffer pointers-to-tuple, arrays-of-tuple, etc. Added to DStress as http://dstress.kuehne.cn/nocompile/t/tuple_06_A.d http://dstress.kuehne.cn/nocompile/t/tuple_06_B.d http://dstress.kuehne.cn/nocompile/t/tuple_06_C.d http://dstress.kuehne.cn/nocompile/t/tuple_06_D.d http://dstress.kuehne.cn/nocompile/t/tuple_06_E.d http://dstress.kuehne.cn/nocompile/t/tuple_06_F.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFfEkDLK5blCcjpWoRAiwoAJ9K+uYIIY7N2dQf+AC1OHeLRLV2XQCbBpHJ ws0KN2BNvjI9l5J7+BneeK8= =JZxF -----END PGP SIGNATURE-----
Some test cases that didn't cause DMD-1.010 to ICE cause DMD-1.013 to ICE: http://dstress.kuehne.cn/nocompile/t/tuple_06_B.d (-O, -inline, -release and combinations thereof) http://dstress.kuehne.cn/nocompile/t/tuple_06_F.d (-g)
Fixed DMD 1.018 and DMD 2.002
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル