Prechádzať zdrojové kódy

* fixed finish_copied_procdef() in case newstruct is nil after support for
generics was added to it

git-svn-id: trunk@28226 -

Jonas Maebe 11 rokov pred
rodič
commit
256f2fcf69
1 zmenil súbory, kde vykonal 2 pridanie a 1 odobranie
  1. 2 1
      compiler/symcreat.pas

+ 2 - 1
compiler/symcreat.pas

@@ -1037,7 +1037,8 @@ implementation
       i: longint;
     begin
       { add generic flag if required }
-      if df_generic in newstruct.defoptions then
+      if assigned(newstruct) and
+         (df_generic in newstruct.defoptions) then
         include(pd.defoptions,df_generic);
       { associate the procdef with a procsym in the owner }
       if not(pd.proctypeoption in [potype_class_constructor,potype_class_destructor]) then