Changed a comment and an error message into more specific text.
This commit is contained in:
@@ -836,13 +836,13 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags)
|
|||||||
/* Do we have an entry with this name already? */
|
/* Do we have an entry with this name already? */
|
||||||
SymEntry* Entry = FindSymInTable (Tab, Name, HashStr (Name));
|
SymEntry* Entry = FindSymInTable (Tab, Name, HashStr (Name));
|
||||||
if (Entry) {
|
if (Entry) {
|
||||||
|
|
||||||
Type* EType;
|
Type* EType;
|
||||||
|
|
||||||
/* Even if the symbol already exists, let's make sure it
|
/* If the existing symbol is an enumerated constant,
|
||||||
** is not an ENUM. See bug #728. */
|
** then avoid a compiler crash. See GitHub issue #728.
|
||||||
|
*/
|
||||||
if (Entry->Flags & SC_ENUM) {
|
if (Entry->Flags & SC_ENUM) {
|
||||||
Fatal ("Conflicting types for `%s'", Name);
|
Fatal ("Can't redeclare enum constant `%s' as global variable", Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We have a symbol with this name already */
|
/* We have a symbol with this name already */
|
||||||
|
|||||||
Reference in New Issue
Block a user