[Issue 11448] `dup` calls @system impure code from @safe pure function

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sun May 25 14:53:26 PDT 2014


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

Kenji Hara <k.hara.pg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Kenji Hara <k.hara.pg at gmail.com> ---
The issues is fixed in git-head (2.066a), by implementing 'dup' function in
druntime.

test.d(7): Error: pure function 'D main' cannot call impure function
'object.dup!(S).dup'
test.d(7): Error: safe function 'D main' cannot call system function
'object.dup!(S).dup'

--


More information about the Digitalmars-d-bugs mailing list