Jump to page: 1 2
Thread overview
[Issue 16095] a delegate can mutate immutable data and break shared / non-shared enforcements
[Issue 16095] a delegate can mutate immutable data
Jul 27, 2016
ag0aep6g@gmail.com
Jul 27, 2016
hbaelx@hotmail.com
Jul 27, 2016
hbaelx@hotmail.com
Jul 28, 2016
ZombineDev
Aug 27, 2016
Walter Bright
Oct 06, 2016
Adam D. Ruppe
Nov 19, 2018
Stanislav Blinov
May 24, 2022
Walter Bright
July 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16095

ag0aep6g@gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |accepts-invalid
                 CC|                            |ag0aep6g@gmail.com

--
July 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16095

hbaelx@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hbaelx@hotmail.com

--- Comment #1 from hbaelx@hotmail.com ---
It doesn't only break immutability, but also TLS:

struct Foo
{
    void ping() shared {}
}

void main()
{
    Foo a;
    // a.ping(); // rejected
    (&a.ping)(); // accepted
}

I really hope someone fixes this soon enough. This is a major flaw.

--
July 27, 2016
https://issues.dlang.org/show_bug.cgi?id=16095

hbaelx@hotmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|a delegate can mutate       |a delegate can mutate
                   |immutable data              |immutable data and break
                   |                            |shared / non-shared
                   |                            |enforcements

--
July 28, 2016
https://issues.dlang.org/show_bug.cgi?id=16095

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |petar.p.kirov@gmail.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All
           Severity|major                       |critical

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

Walter Bright <bugzilla@digitalmars.com> changed:

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

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

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

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

https://github.com/dlang/dmd/commit/3c53a0fd9ed1b40f8dbeb75b4dfa11f6df5b3062 fix Issue 16095 - a delegate can mutate immutable data and break shared / non-shared enforcements

https://github.com/dlang/dmd/commit/d4f45f99eb250e17dc4bb189ae5440f134731c61 Merge pull request #6091 from WalterBright/fix16095

fix Issue 16095 - a delegate can mutate immutable data and break shar…

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

github-bugzilla@puremagic.com changed:

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

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

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

https://github.com/dlang/dmd/commit/3c53a0fd9ed1b40f8dbeb75b4dfa11f6df5b3062 fix Issue 16095 - a delegate can mutate immutable data and break shared / non-shared enforcements

https://github.com/dlang/dmd/commit/d4f45f99eb250e17dc4bb189ae5440f134731c61 Merge pull request #6091 from WalterBright/fix16095

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

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #5 from Adam D. Ruppe <destructionator@gmail.com> ---
The fix created a new bug... see my comment here

https://github.com/dlang/dmd/commit/3c53a0fd9ed1b40f8dbeb75b4dfa11f6df5b3062#commitcomment-19312704

--
November 19, 2018
https://issues.dlang.org/show_bug.cgi?id=16095

Stanislav Blinov <stanislav.blinov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=1983

--
« First   ‹ Prev
1 2