[Issue 827] Trying to break out of a labelled BlockStatement breaks out of a for loop at its beginning

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Oct 23 15:13:40 UTC 2017


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

Nick Treleaven <nick at geany.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |nick at geany.org

--- Comment #4 from Nick Treleaven <nick at geany.org> ---
(In reply to Stewart Gordon from comment #0)
> ----------
>     block: {
>         for (int i = 0; i < 10; i++) {
>             if (i == 5) break block;
>         }

dmd 2.076.1 (dpaste) now gives:
/d220/f421.d(7): Error: label `block` has no break

--


More information about the Digitalmars-d-bugs mailing list