d'oh, forgot about "default"

This commit is contained in:
Bill Currie 2003-02-28 05:18:49 +00:00
parent e9b117379f
commit a45223da6c

View file

@ -96,7 +96,7 @@ case_label_expr (switch_block_t *switch_block, expr_t *value)
if (value)
convert_name (value);
if (value->type == ex_def && value->e.def->constant)
if (value && value->type == ex_def && value->e.def->constant)
value = constant_expr (value);
if (value && value->type < ex_string) {
error (value, "non-constant case value");