http://d.puremagic.com/issues/show_bug.cgi?id=3912
Summary: pure static nested functions are not recognized as pure Product: D Version: 2.040 Platform: Other OS/Version: Windows Status: NEW Keywords: rejects-valid Severity: normal Priority: P2 Component: DMD AssignedTo: nob...@puremagic.com ReportedBy: clugd...@yahoo.com.au --- Comment #0 from Don <clugd...@yahoo.com.au> 2010-03-09 04:29:59 PST --- This bug was reported in a comment in bug 3835 ("fragile CTFE"), but it does not involve CTFE, so I've created a new bug for it. ===== pure int genFactorials(int n) { static pure int factorial(int n) { if (n==2) return 1; return factorial(2); } return factorial(n); } ============================ bug.d(7): Error: pure function 'factorial' cannot call impure function 'factor ial' bug.d(9): Error: pure function 'genFactorials' cannot call impure function 'fa ctorial' -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------