[Issue 8052] Spurious warning when exiting out of a labeled Do-While

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Feb 9 17:50:15 PST 2016


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

--- Comment #4 from jiki at red.email.ne.jp ---
I hit this again.

The bug seems a careless bit operation.

Location:
  statement.d
    Statement.blockExit()
      BlockExit.visit(DoStatement)

Code:
  if (result == BEbreak) // '==' should be '&'
  ...
  if (result & BEcontinue)
  ...

I wanted to make a PR, but I don't see how the other flags work.

--


More information about the Digitalmars-d-bugs mailing list