Thread overview
[Issue 19205] [REG 2.081] Cannot call superclass ctor after end of switch statement
[Issue 19205] Cannot call superclass ctor after end of switch statement
Sep 06, 2018
RazvanN
Oct 16, 2018
Stingertough
Dec 13, 2018
Walter Bright
Dec 18, 2019
Walter Bright
Dec 17, 2022
Iain Buclaw
August 29, 2018
https://issues.dlang.org/show_bug.cgi?id=19205

--- Comment #1 from hsteoh@quickfur.ath.cx ---
This regression was introduced in 2.081.  The code compiles fine in 2.080.

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

hsteoh@quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Cannot call superclass ctor |[REG 2.081] Cannot call
                   |after end of switch         |superclass ctor after end
                   |statement                   |of switch statement

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

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

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

--- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> ---
This looks like a duplicate of : https://issues.dlang.org/show_bug.cgi?id=18688

--
October 16, 2018
https://issues.dlang.org/show_bug.cgi?id=19205

Stingertough <stingertough@gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |stingertough@gmx.com

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

Walter Bright <bugzilla@digitalmars.com> changed:

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

--
December 18, 2019
https://issues.dlang.org/show_bug.cgi?id=19205

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
           Severity|regression                  |enhancement

--- Comment #3 from Walter Bright <bugzilla@digitalmars.com> ---
The constructor flow analysis is primitive, and whenever it sees a label it decides "could be a loop" and treats it as a loop. Case statements are indeed labels, as one can goto them.

The reason this code used to compile is because case statements were not checked - there could have been loops. This problem was fixed.

I'm going to redo this as an Enhancement Request for flow analysis in the constructors.

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

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|enhancement                 |regression

--