Error info for loading expressions of incomplete enum types.
No more "Illegal type 0016".
This commit is contained in:
parent
6df4f1996b
commit
d6aa446b54
1 changed files with 5 additions and 0 deletions
|
@ -974,6 +974,11 @@ unsigned TypeOf (const Type* T)
|
||||||
/* Address of ... */
|
/* Address of ... */
|
||||||
return CF_INT | CF_UNSIGNED;
|
return CF_INT | CF_UNSIGNED;
|
||||||
|
|
||||||
|
case T_ENUM:
|
||||||
|
/* Incomplete enum type */
|
||||||
|
Error ("Incomplete enum type");
|
||||||
|
return CF_INT;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
Error ("Illegal type %04lX", T->C);
|
Error ("Illegal type %04lX", T->C);
|
||||||
return CF_INT;
|
return CF_INT;
|
||||||
|
|
Loading…
Add table
Reference in a new issue