[Issue 10852] function wrongly inferred pure in embeded function with function cast

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 20 08:04:14 PST 2013


https://d.puremagic.com/issues/show_bug.cgi?id=10852


yebblies <yebblies at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |yebblies at gmail.com
         AssignedTo|nobody at puremagic.com        |k.hara.pg at gmail.com


--- Comment #1 from yebblies <yebblies at gmail.com> 2013-11-21 03:04:12 EST ---
When it gets to checking the call, it calls sc->func->setImpure(), but this is
not good enough.  This function is not marked as pure, and it is not templated,
so of course there is no problem making it impure.  It needs to see if any
enclosing functions are getting purity inference run on them, like what is done
in checkPurity().

I bet Kenji Hara knows how to fix this.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list