Mercurial > projects > dstress
changeset 1222:f5ff36ad0c46
[Issue 484] New: Compiler segfault with template variadic used as a template alias.
Don Clugston <clugdbug@yahoo.com.au>
2006-11-06
news:bug-484-3@http.d.puremagic.com/issues/
author | thomask |
---|---|
date | Thu, 23 Nov 2006 10:45:02 +0000 |
parents | ad4cbc9a05e4 |
children | 415ee28b3d48 |
files | run/t/tuple_02_A.d |
diffstat | 1 files changed, 25 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/run/t/tuple_02_A.d Thu Nov 23 10:45:02 2006 +0000 @@ -0,0 +1,25 @@ +// $HeadURL$ +// $Date$ +// $Author$ + +// @author@ Don Clugston <clugdbug@yahoo.com.au> +// @date@ 2006-11-06 +// @uri@ news:bug-484-3@http.d.puremagic.com/issues/ +// @desc@ [Issue 484] New: Compiler segfault with template variadic used as a template alias. + +module dstress.run.t.tuple_02_A; + +int g(alias B)(){ + return B * 2; +} + +int f(A...)(A a){ + return g!(a) + 1; +} + +int main(){ + if(f(4) != 9){ + assert(0); + } + return 0; +}