August 22, 2014
https://issues.dlang.org/show_bug.cgi?id=13362

          Issue ID: 13362
           Summary: DMD accepts body-less switch
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P1
         Component: DMD
          Assignee: nobody@puremagic.com
          Reporter: blah38621@gmail.com

DMD currently accepts a switch with no actual body (extracted from a parital dustmite reduction):

switch( ch )
    return ;

As a likely directly related issue, DMD also accepts this, although it shouldn't:

IRCallingConvention parseCallConvention()
{
    // CallConvention
    switch(tok)
    {
            return IRCallingConvention.d;
    }
}

--