diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index e77b64c..b1e2108 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -5820,6 +5820,8 @@ static void dolabel(void) if (find_constval(&tagname_tab,st,0)!=NULL) error(221,st); /* label name shadows tagname */ sym=fetchlab(st); + if ((sym->usage & uDEFINE)!=0) + error(21,st); /* symbol already defined */ setlabel((int)sym->addr); /* since one can jump around variable declarations or out of compound * blocks, the stack must be manually adjusted