* check that not more than one relsymbol is used

git-svn-id: trunk@9367 -
This commit is contained in:
Jonas Maebe 2007-12-01 14:26:06 +00:00
parent df2980f0c0
commit 3f57d681e1

View File

@ -296,7 +296,10 @@ Implementation
Consume(AS_MINUS);
BuildConstSymbolExpression(true,true,false,l,relsym,asmsymtyp);
if (relsym<>'') then
oper.opr.ref.relsymbol:=current_asmdata.RefAsmSymbol(relsym)
if not assigned(oper.opr.ref.relsymbol) then
oper.opr.ref.relsymbol:=current_asmdata.RefAsmSymbol(relsym)
else
Message(asmr_e_invalid_reference_syntax)
else
dec(oper.opr.ref.offset,l);
end;