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


Andrej Mitrovic <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|accepts-invalid,            |pull, rejects-valid
                   |diagnostic, spec            |


--- Comment #6 from Andrej Mitrovic <[email protected]> 2013-02-17 
17:43:36 PST ---
(In reply to comment #5)
> 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.

I already said the spec was wrong and will have to be fixed. The OP code works
without -w, and we're not about to break a ton of code because the spec is
outdated (which is *very* common).

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

Reply via email to