Thread overview
[Issue 17494] Do not execute scope(...) if an Error exception has been thrown
Jun 12, 2017
Walter Bright
Jun 12, 2017
Walter Bright
Jun 17, 2017
Martin Nowak
Oct 24, 2020
Dlang Bot
Dec 17, 2022
Iain Buclaw
June 12, 2017
https://issues.dlang.org/show_bug.cgi?id=17494

Walter Bright <bugzilla@digitalmars.com> changed:

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

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

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

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

Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu

--- Comment #2 from Martin Nowak <code@dawg.eu> ---
Test Case from Vladimir https://github.com/dlang/dmd/pull/6816#issuecomment-307657520

struct S
{
    ~this() {}
}

class C
{
    S s;

    this() nothrow {}
}

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

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

https://github.com/dlang/dmd/commit/558773e64d42d56ad02970adfdc1371311ca3291 add test cases for existing production code

- fixes Issues 17494, 17505, 17506

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

github-bugzilla@puremagic.com changed:

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

--
August 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17494

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

https://github.com/dlang/dmd/commit/558773e64d42d56ad02970adfdc1371311ca3291 add test cases for existing production code

--
September 05, 2020
https://issues.dlang.org/show_bug.cgi?id=17494

moonlightsentinel@disroot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |moonlightsentinel@disroot.o
                   |                            |rg
         Resolution|FIXED                       |---

--- Comment #5 from moonlightsentinel@disroot.org ---
This issue was never fixed:

=====================================

import core.stdc.stdio : puts;

void main()
{
    scope (exit) puts("Hello, World!");
    throwError();
}

void throwError()
{
    throw new Error("");
}

=====================================

Hello, World!
object.Error@(0)
----------------
onlineapp.d:11 void onlineapp.throwError() [0x5579194b2bea]
onlineapp.d:6 _Dmain [0x5579194b2b78]

--
October 24, 2020
https://issues.dlang.org/show_bug.cgi?id=17494

Dlang Bot <dlang-bot@dlang.rocks> changed:

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

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #6896 "fix Issue 17494 - Do not execute scope(...) if an Error exception has…" fixing this issue:

- fix Issue 17494 - Do not execute scope(...) if an Error exception has been
thrown

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

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=17494

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
December 13
https://issues.dlang.org/show_bug.cgi?id=17494

--- Comment #7 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19261

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--