diff --git a/compiler/node.pas b/compiler/node.pas index e391046db0..cf3db31674 100644 --- a/compiler/node.pas +++ b/compiler/node.pas @@ -839,6 +839,9 @@ implementation procedure tnode.printnodeinfo(var t:text); + var + i : tnodeflag; + first : boolean; begin write(t,nodetype2str[nodetype]); if assigned(resultdef) then @@ -847,7 +850,19 @@ implementation write(t,', resultdef = '); write(t,', pos = (',fileinfo.line,',',fileinfo.column,')', ', loc = ',tcgloc2str[location.loc], - ', expectloc = ',tcgloc2str[expectloc]); + ', expectloc = ',tcgloc2str[expectloc], + ', flags = ['); + first:=true; + for i:=low(tnodeflag) to high(tnodeflag) do + if i in flags then + begin + if not(first) then + write(',') + else + first:=false; + write(i); + end; + write(']'); end;