[Issue 6552] Wrong fallthrough warning for CaseRange

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Feb 17 17:33:54 PST 2013


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


Stewart Gordon <smjg at iname.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|pull, rejects-valid         |accepts-invalid,
                   |                            |diagnostic, spec
                 CC|                            |smjg at iname.com


--- Comment #5 from Stewart Gordon <smjg at iname.com> 2013-02-17 17:33:51 PST ---
The code is not valid per the current spec.

http://dlang.org/statement.html#SwitchStatement

CaseStatement:
    case ArgumentList : ScopeStatementList

ScopeStatementList:
    StatementListNoCaseNoDefault

StatementListNoCaseNoDefault:
    StatementNoCaseNoDefault
    StatementNoCaseNoDefault StatementListNoCaseNoDefault

By this spec,
    case 1,2: case 3,4: anything
is invalid.

-- 
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