Mercurial > projects > dstress
view complex/error_message/error_message_01_B.d @ 1576:b3e16c86558e
[Issue 1398] New: GDC doesn't generate correct code
<mariusmuja@gmail.com>
2007-08-04
http://d.puremagic.com/issues/show_bug.cgi?id=1398
author | thomask |
---|---|
date | Thu, 21 Feb 2008 15:20:08 +0000 |
parents | fb70ca0d80ba |
children |
line wrap: on
line source
// $HeadURL$ // $Date$ // $Author$ // @author@ Don Clugston <dac@nospam.com.au> // @date@ 2005-11-24 // @uri@ news:dm3rs0$2qit$1@digitaldaemon.com module dstress.complex.error_message.error_message_01_B; template a() { const real val= 0x1p90; } template half(alias f) { const real val = f.val/2; } template c(alias f) { static if (f.val > 2.0) const int val = c!( half!(f) ).val; } const int m = c!(a!()).val;