[Issue 9642] Missed switch case fallthrough

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Mar 3 17:34:44 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9642


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-03 17:34:42 PST ---
It looks like it wasn't properly implemented, e.g. this will error with -w:

void main() {
    int x;
    switch ('x') {
        case 'a':
            x++;
        case 'b':// .. case 'c':
            x++;
            break;
        default:
    }
}

Note the commented out code. Tested in 2.063 -- 2.060.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list