mirror of
https://github.com/cc65/cc65.git
synced 2024-06-01 13:41:34 +00:00
Error for struct/union with a duplicate member #2015
This commit is contained in:
parent
805e98a7aa
commit
56c715af40
|
@ -793,6 +793,8 @@ static int HandleSymRedefinition (SymEntry* Sym, const Type* T, unsigned Flags)
|
|||
*/
|
||||
Error ("Redeclaration of enumerator constant '%s'", Sym->Name);
|
||||
Sym = 0;
|
||||
} else if (Flags & SC_STRUCTFIELD) {
|
||||
Error ("Duplicate member '%s'", Sym->Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user