Преглед изворни кода

* Fixed internal error 200411013 when typecasting and dereferencing nil into an array

J. Gareth "Curious Kit" Moreton пре 4 месеци
родитељ
комит
2b9455e262
1 измењених фајлова са 4 додато и 0 уклоњено
  1. 4 0
      compiler/ncgmem.pas

+ 4 - 0
compiler/ncgmem.pas

@@ -974,6 +974,10 @@ implementation
                    hlcg.location_force_mem(current_asmdata.CurrAsmList,left.location,left.resultdef);
                    location_copy(location,left.location);
                  end;
+               LOC_CONSTANT:  { Usually 'nil' }
+                 begin
+                   hlcg.reference_reset_base(location.reference,left.resultdef,NR_NO,left.location.value,ctempposinvalid,location.reference.alignment,[]);
+                 end;
                LOC_INVALID:
                  Internalerror(2019061101);
                else