[Issue 6965] New: [CTFE] wrong reset of variable
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 17 02:42:43 PST 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6965
Summary: [CTFE] wrong reset of variable
Product: D
Version: D2
Platform: Other
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: DMD
AssignedTo: nobody at puremagic.com
ReportedBy: dawg at dawgfoto.de
--- Comment #0 from dawg at dawgfoto.de 2011-11-17 02:41:56 PST ---
size_t fac(size_t n)
{
size_t res = n;
while (n--)
res *= n;
return res;
}
static assert(fac(3) == 6);
------
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list