[Issue 12640] Error inside a switch statement causes a spurious switch case fallthrough warning

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Fri Apr 25 01:03:23 PDT 2014


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

Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|@nogc introduces a spurious |Error inside a switch
                   |switch case fallthrough     |statement causes a spurious
                   |warning                     |switch case fallthrough
                   |                            |warning

--- Comment #2 from Andrej Mitrovic <andrej.mitrovich at gmail.com> ---
Changed title. Reduced test-case:

-----
void main()
{
    switch (1)
    {
        case 0:
            asdf;
            break;

        default:
    }
}
-----

--


More information about the Digitalmars-d-bugs mailing list