check to make sure no duplicate entries in symbol table, and report an error if there are