[Issue 21739] debug case can access variable from other case

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 21 02:42:55 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=21739

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

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

--- Comment #1 from Dlang Bot <dlang-bot at dlang.rocks> ---
@MoonlightSentinel created dlang/dmd pull request #12292 "Fix 21739 - Don't
merge `debug case` into previous CaseStatement" fixing this issue:

- Fix 21739 - Don't merge `debug case` into previous CaseStatement

  The previous implementation assumed that `CaseStatement`s would be
  seperated by a top-level `case ...`. This is not the case for
  conditionally compiled cases, e.g. `debug { case ...: }`.

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

--


More information about the Digitalmars-d-bugs mailing list