# HG changeset patch # User thomask # Date 1164278702 0 # Node ID f5ff36ad0c46975b452d75bb4ed8f03e353f9e18 # Parent ad4cbc9a05e40a87022cc215409ba351c6242c96 [Issue 484] New: Compiler segfault with template variadic used as a template alias. Don Clugston 2006-11-06 news:bug-484-3@http.d.puremagic.com/issues/ diff -r ad4cbc9a05e4 -r f5ff36ad0c46 run/t/tuple_02_A.d --- /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 +// @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; +}