Browse Source

* ensure that we don't firstpass a tcgnestloadnode twice, as it
changes left (should be solved in a cleaner way, by transforming
the whole load node into an equivalent construct)

git-svn-id: trunk@32780 -

Jonas Maebe 9 năm trước cách đây
mục cha
commit
96698994f3
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      compiler/ncgnstld.pas

+ 3 - 0
compiler/ncgnstld.pas

@@ -179,9 +179,12 @@ implementation
                   if not assigned(left) then
                     internalerror(2011060104);
                   firstpass(left);
+                  if left.resultdef.typ<>pointerdef then
+                    internalerror(2015122801);
                   { subscript it to get the variable }
                   left:=csubscriptnode.create(thissym,cderefnode.create(left));
                   firstpass(left);
+                  include(flags,nf_internal);
                  end;
             end;
         end;