1
0
mirror of https://github.com/cc65/cc65.git synced 2024-09-29 17:56:21 +00:00

Error info for loading expressions of incomplete enum types.

No more "Illegal type 0016".
This commit is contained in:
acqn 2020-08-03 01:24:38 +08:00 committed by Oliver Schmidt
parent 6df4f1996b
commit d6aa446b54

View File

@ -974,6 +974,11 @@ unsigned TypeOf (const Type* T)
/* Address of ... */
return CF_INT | CF_UNSIGNED;
case T_ENUM:
/* Incomplete enum type */
Error ("Incomplete enum type");
return CF_INT;
default:
Error ("Illegal type %04lX", T->C);
return CF_INT;