D-Programming-Language/dmd — pull request #652 by yebblies (2012-01-29 04:26:27+00:00)
Title: Issue 6169 - [CTFE] pure functions cannot compute constants using functions not marked as pure

When running semantic on an expression used anywhere that forces compile time evaluation, use a scope flag to prevent purity and safety checks on function calls.
This allows more functions to be inferred @safe/pure as well.

Fixes Issue 6169
http://d.puremagic.com/issues/show_bug.cgi?id=6169