Thread overview
[Issue 22930] importC: switch statement should use default:break; if no default specified
Mar 29, 2022
Walter Bright
Mar 29, 2022
Dlang Bot
Mar 29, 2022
Dlang Bot
March 29, 2022
https://issues.dlang.org/show_bug.cgi?id=22930

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla@digitalmars.com
            Summary|importC: switch statement   |importC: switch statement
                   |gives bogus unreachable     |should use default:break;
                   |code warning                |if no default specified

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

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

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

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright created dlang/dmd pull request #13911 "fix Issue 22930 - ImportC: D default for switch is wrong for C" fixing this issue:

- fix Issue 22930 - ImportC: D default for switch is wrong for C

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

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

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13911 "fix Issue 22930 - ImportC: D default for switch is wrong for C" was merged into master:

- dd3e323c64a504023d6aded55b281660bcd3abdb by Walter Bright:
  fix Issue 22930 - ImportC: D default for switch is wrong for C

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

--