https://issues.dlang.org/show_bug.cgi?id=22221

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Walter Bright <[email protected]> ---
The problem here comes from the compiler automatically inferring `scope` for
the parameter `x` because it's a pure function, assuming that `x` cannot escape
it because `pure` disallows storing things in global variables.

The trouble is that escaping via a thrown exception was not taken into account.

--

Reply via email to