Thread overview
[Issue 5305] Cannot take pointer to intrinsic function
[Issue 5305] intrinsic functions have @safe stripped of them in release mode.
Jun 07, 2016
Walter Bright
Jun 12, 2016
Walter Bright
Jun 17, 2016
Mathias Lang
Jun 17, 2016
Walter Bright
Aug 25
Dlang Bot
Aug 25
Dlang Bot
June 18, 2014
https://issues.dlang.org/show_bug.cgi?id=5305

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |hsteoh@quickfur.ath.cx

--
June 07, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
Works with the current version of DMD. Adding a test case:

https://github.com/dlang/dmd/pull/5845

--
June 12, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--
June 17, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

Mathias Lang <mathias.lang@sociomantic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mathias.lang@sociomantic.co
                   |                            |m
         Resolution|---                         |DUPLICATE
            Summary|intrinsic functions have    |Cannot take pointer to
                   |@safe stripped of them in   |intrinsic function
                   |release mode.               |

--- Comment #5 from Mathias Lang <mathias.lang@sociomantic.com> ---
As mentioned by #c2, the issue is taking a pointer to an intrinsic function. Closing as duplicate and renaming for clarity.

*** This issue has been marked as a duplicate of issue 4541 ***

--
June 17, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #6 from Walter Bright <bugzilla@digitalmars.com> ---
The test case I added is to verify that taking the address of sqrt from std.math works.

--
June 17, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

--- Comment #7 from github-bugzilla@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/fad9e24cff5aff88c5635b010076bf6d39e659e7 fix Issue 5305 - intrinsic functions have @safe stripped of them in release mode

https://github.com/dlang/dmd/commit/5f8f6f569eb9d5076c8e2ad68237e18c86052eb0 Merge pull request #5845 from WalterBright/test5305

fix Issue 5305 - intrinsic functions have @safe stripped of them in r…

--
June 17, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

github-bugzilla@puremagic.com changed:

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

--
October 01, 2016
https://issues.dlang.org/show_bug.cgi?id=5305

--- Comment #8 from github-bugzilla@puremagic.com ---
Commits pushed to stable at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/fad9e24cff5aff88c5635b010076bf6d39e659e7 fix Issue 5305 - intrinsic functions have @safe stripped of them in release mode

https://github.com/dlang/dmd/commit/5f8f6f569eb9d5076c8e2ad68237e18c86052eb0 Merge pull request #5845 from WalterBright/test5305

--
August 25
https://issues.dlang.org/show_bug.cgi?id=5305

--- Comment #9 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13016 "test: Remove test case for issue 5305" was merged into master:

- 499d0aa53ac2b4d6a3c39dd7976432de4f926538 by Iain Buclaw:
  test: Remove test case for issue 5305

  This test is already covered in Phobos std.math

https://github.com/dlang/dmd/pull/13016

--
August 25
https://issues.dlang.org/show_bug.cgi?id=5305

--- Comment #10 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #8210 "std.math: Reference Issue 5305 in unittest taking pointer to function" was merged into master:

- 5a39765c4c5e4c34cd5ee84bae0901af6869d66f by Iain Buclaw:
  std.math: Reference Issue 5305 in unittest taking pointer to function

https://github.com/dlang/phobos/pull/8210

--