raise parse error on 'case' without a pattern (closes #2415)