digitalmars.D.bugs - compiler segfault: typesafe variadic arguments
- Thomas Kuehne <thomas-dloop kuehne.cn> Oct 29 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
segfaults:
# void test(int dummy, int pos ...){
# }
#
# test(new int[1, 2]);
doesn't segfault:
# void test(int pos ...){
# }
#
# test(new int[1, 2]);
xpass:
#
# auto x = new int[1.1, 2];
#
Added to DStress as
http://dstress.kuehne.cn/nocompile/v/variadic_argument_09_A.d
http://dstress.kuehne.cn/nocompile/v/variadic_argument_09_B.d
http://dstress.kuehne.cn/nocompile/n/new_26_A.d
http://dstress.kuehne.cn/nocompile/n/new_26_B.d
http://dstress.kuehne.cn/nocompile/n/new_26_C.d
Thomas
-----BEGIN PGP SIGNATURE-----
iD8DBQFDZAWI3w+/yD4P9tIRAtJYAJ4m6M+usT7bOHhwvl9WN8xUgnod9wCghnbo
EQpIAFo0BikWaZdIjrCjoWU=
=ONvw
-----END PGP SIGNATURE-----
Oct 29 2005








Thomas Kuehne <thomas-dloop kuehne.cn>