Mercurial > projects > dstress
view run/t/tuple_02_A.d @ 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 | |
children | daef239f37cf |
line wrap: on
line source
// $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; }