Mercurial > projects > dstress
view nocompile/t/template_48_A.d @ 1238:672b0632b05c
infinite loop in gdc-0.19 with tempaltes
rm <roel.mathys@gmail.com>
2006-10-04
news:eg14oj$4vh$4@digitaldaemon.com
author | thomask |
---|---|
date | Sat, 25 Nov 2006 17:53:07 +0000 |
parents | |
children | 1ee9a0dd42d9 |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ rm <roel.mathys@gmail.com> // @date@ 2006-10-04 // @uri@ news:eg14oj$4vh$4@digitaldaemon.com // @desc@ infinite loop in gdc-0.19 with tempaltes // __DSTRESS_ELINE__ 19 module dstress.nocompile.t.template_48_A; template TFoo(int v : 1){ const int TFoo = 1; } template TFoo(int v){ const int TFoo = v * TFoo!(v-1).TFoo; } static assert(TFoo!(4) == 24);