diff --git a/source/compiler/sc1.c b/source/compiler/sc1.c index 7cd9ba5..217deb0 100644 --- a/source/compiler/sc1.c +++ b/source/compiler/sc1.c @@ -5837,6 +5837,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