Thread overview
[Issue 18607] using labelled continue in tuple foreach can break pure and @safe
Mar 13, 2018
ag0aep6g
Mar 21, 2018
Walter Bright
Mar 22, 2018
Carsten Blüggel
March 13, 2018
https://issues.dlang.org/show_bug.cgi?id=18607

ag0aep6g <ag0aep6g@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |ag0aep6g@gmail.com
           Hardware|x86                         |All
            Summary|using labelled continue in  |using labelled continue in
                   |tuple foreach can break     |tuple foreach can break
                   |pure                        |pure and @safe
                 OS|Windows                     |All

--- Comment #1 from ag0aep6g <ag0aep6g@gmail.com> ---
When returning a pointer, this also breaks @safe:

----
int* test(T...)() @safe pure {
    L:foreach(_; T) {
        continue L;
        return null;
    }
}
----

--
March 21, 2018
https://issues.dlang.org/show_bug.cgi?id=18607

Walter Bright <bugzilla@digitalmars.com> changed:

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

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

--
March 22, 2018
https://issues.dlang.org/show_bug.cgi?id=18607

Carsten Blüggel <chilli@posteo.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |chilli@posteo.net

--
March 22, 2018
https://issues.dlang.org/show_bug.cgi?id=18607

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

https://github.com/dlang/dmd/commit/5ccd55ff54eb1c3502f0a435b48c6c63122ce213 fix Issue 18607 - using labelled continue in tuple foreach can break pure and @safe

https://github.com/dlang/dmd/commit/b19832e0f150461a5d39204d8efb49871756e38d Merge pull request #8061 from WalterBright/fix18607

fix Issue 18607 - using labelled continue in tuple foreach can break … merged-on-behalf-of: Walter Bright <WalterBright@users.noreply.github.com>

--
March 22, 2018
https://issues.dlang.org/show_bug.cgi?id=18607

github-bugzilla@puremagic.com changed:

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

--