Thread overview
[Issue 18688] Constructors shouldn't have implicit super call if it throws
Mar 29, 2018
RazvanN
Mar 29, 2018
Walter Bright
Apr 04, 2018
Walter Bright
Apr 06, 2018
Walter Bright
Dec 13, 2018
Walter Bright
Dec 17, 2022
Iain Buclaw
March 29, 2018
https://issues.dlang.org/show_bug.cgi?id=18688

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |razvan.nitu1305@gmail.com

--- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> ---
PR : https://github.com/dlang/dmd/pull/8100

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

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All

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

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

https://github.com/dlang/dmd/commit/978cb051c2f4b3f716a330032280aee234214db8 Fix Issue 18688 - Constructors shouldn't have implicit super call if it throws

https://github.com/dlang/dmd/commit/830f9e0ed422887193b6c7454a940c7a92b05de8 Merge pull request #8100 from RazvanN7/Issue_18688

Fix Issue 18688 - Constructors shouldn't have implicit super call if it throws merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>

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

github-bugzilla@puremagic.com changed:

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

--
April 04, 2018
https://issues.dlang.org/show_bug.cgi?id=18688

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---
           Severity|enhancement                 |normal

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
The real problem is that delegating constructor calls are not allowed after labels, and the case and default statements are labels. The compiler should detect those.

The trouble with labels is the primitive flow analysis done by the compiler cannot handle them. So they are just disallowed. Maybe a future enhancement could cover it.

--
April 06, 2018
https://issues.dlang.org/show_bug.cgi?id=18688

Walter Bright <bugzilla@digitalmars.com> changed:

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

--
December 13, 2018
https://issues.dlang.org/show_bug.cgi?id=18688

Walter Bright <bugzilla@digitalmars.com> changed:

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

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--