From 03e43d1fbfc281f05026e4466c5e73e2cdac0dcb Mon Sep 17 00:00:00 2001 From: Greg King Date: Mon, 8 Oct 2018 20:39:46 -0400 Subject: [PATCH] Changed a comment and an error message into more specific text. --- src/cc65/symtab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index c875360e3..8eefe1178 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -836,13 +836,13 @@ SymEntry* AddGlobalSym (const char* Name, const Type* T, unsigned Flags) /* Do we have an entry with this name already? */ SymEntry* Entry = FindSymInTable (Tab, Name, HashStr (Name)); if (Entry) { - Type* EType; - /* Even if the symbol already exists, let's make sure it - ** is not an ENUM. See bug #728. */ + /* If the existing symbol is an enumerated constant, + ** then avoid a compiler crash. See GitHub issue #728. + */ 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 */ -- 2.39.5