[Issue 639] New: Escaped tuple parameter ICEs dmd

Thomas Kuehne thomas-dloop at kuehne.cn
Sun Dec 10 09:01:00 PST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

d-bugmail at 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-----


More information about the Digitalmars-d-bugs mailing list