[Issue 495] New: ICE passing variadic arglist to another variadic template

Thomas Kuehne thomas-dloop at kuehne.cn
Sat Dec 23 13:20:20 PST 2006


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

d-bugmail at puremagic.com schrieb am 2006-11-12:
> http://d.puremagic.com/issues/show_bug.cgi?id=495

> // Calling variadic from variadic
> import std.stdio: p=writefln;
>
> void g(T...)()
> {
>     writefln("Howdy!");
> }
>
> void f(T...)(T t )
> {
>     g!(T)();
> }    
>
>
> void main()
> {
> //Assertion failure: 'global.errors' on line 2752 in file 'template.c' 
>    f!(int)(3);
> }

Added to DStress as
http://dstress.kuehne.cn/compile/t/tuple_08_A.d
http://dstress.kuehne.cn/run/t/tuple_08_B.d

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFjZHjLK5blCcjpWoRAr4/AJ9DHwFOttpZ09xn2Wq907voQ/fQOQCgjcgK
yPQnPMcSr6kdGQBjiLPP32I=
=jOS9
-----END PGP SIGNATURE-----


More information about the Digitalmars-d-bugs mailing list