mirror of
https://github.com/cc65/cc65.git
synced 2025-08-08 22:25:28 +00:00
Error info for loading expressions of incomplete enum types.
No more "Illegal type 0016".
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user