Thread overview
[Issue 16365] cannot allow calling function pointer from delegate in @safe code
Aug 08, 2016
ag0aep6g@gmail.com
Aug 22, 2016
Walter Bright
Aug 25, 2016
Walter Bright
Aug 25, 2016
Walter Bright
Aug 25, 2016
Walter Bright
August 08, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

--- Comment #1 from ag0aep6g@gmail.com ---
(In reply to ag0aep6g from comment #0)
>     S s;
>     void delegate(immutable int*, int*) @safe d = &s.f1;
>     void function(immutable int*, int*) @safe f = d.funcptr; /* uh-oh */

Can also use `f = &S.f1;` to obtain the unsafe function pointer.

--
August 22, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
partial fix: https://github.com/dlang/dmd/pull/6072

--
August 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

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

https://github.com/dlang/dmd/commit/3eece2fe875d35db428229b1121eda13e85b3883 partial solution for Issue 16365 - cannot allow calling function pointer from delegate in @safe code

https://github.com/dlang/dmd/commit/627e96b986c9d94feefa5145a077eb2f820a3bef Merge pull request #6072 from WalterBright/fix16365-1

partial solution for Issue 16365 - cannot allow calling function poin…

--
August 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=11176
                 OS|Linux                       |All

--
August 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
Related PR: https://github.com/dlang/dmd/pull/5860

--
August 25, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

Walter Bright <bugzilla@digitalmars.com> changed:

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

--- Comment #5 from Walter Bright <bugzilla@digitalmars.com> ---
https://github.com/dlang/dmd/pull/6085

--
August 26, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

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

https://github.com/dlang/dmd/commit/497fdfbee1b376d049d0531da789dbc60860fe1f fix Issue 16365 - cannot allow calling function pointer from delegate in @safe code

https://github.com/dlang/dmd/commit/fe0ab0df5cfe4aa9c1ec4ea140e5521767e28df5 Merge pull request #6085 from WalterBright/fix16365

fix Issue 16365 - cannot allow calling function pointer from delegate…

--
August 26, 2016
https://issues.dlang.org/show_bug.cgi?id=16365

github-bugzilla@puremagic.com changed:

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

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

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

https://github.com/dlang/dmd/commit/3eece2fe875d35db428229b1121eda13e85b3883 partial solution for Issue 16365 - cannot allow calling function pointer from delegate in @safe code

https://github.com/dlang/dmd/commit/627e96b986c9d94feefa5145a077eb2f820a3bef Merge pull request #6072 from WalterBright/fix16365-1

https://github.com/dlang/dmd/commit/497fdfbee1b376d049d0531da789dbc60860fe1f fix Issue 16365 - cannot allow calling function pointer from delegate in @safe code

https://github.com/dlang/dmd/commit/fe0ab0df5cfe4aa9c1ec4ea140e5521767e28df5 Merge pull request #6085 from WalterBright/fix16365

--