mirror of
https://github.com/cc65/cc65.git
synced 2025-04-08 19:38:55 +00:00
Fix crash due to mistaken symbol identity.
This commit is contained in:
parent
4a38b92a4b
commit
92defb7a2b
@ -839,6 +839,12 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
|
||||
|
||||
Type* EType;
|
||||
|
||||
/* Even if the symbol already exists, let's make sure it
|
||||
** is not an ENUM. See bug #728. */
|
||||
if (Entry->Flags & SC_ENUM) {
|
||||
Fatal ("Conflicting types for `%s'", Name);
|
||||
}
|
||||
|
||||
/* We have a symbol with this name already */
|
||||
if (Entry->Flags & SC_TYPE) {
|
||||
Error ("Multiple definition for `%s'", Name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user