@ -2827,7 +2827,7 @@ static void struct_decl(CType *type, int u, int tdef)
if(v<TOK_UIDENT)
expect("identifier");
ss=sym_find(v);
if(ss)
if(ss&&!local_stack)
tcc_error("redefinition of enumerator '%s'",
get_tok_str(v,NULL));
next();
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.