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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Apr 2 20:43:40 UTC 2021


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

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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #12292 "Fix 21739 - Don't merge `debug case` into
previous CaseStatement" was merged into master:

- dd8a88be3246557f3c82d14f5e5055d6532d9a66 by MoonlightSentinel:
  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 ...: }`.



More information about the Digitalmars-d-bugs mailing list