소스 검색

* 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 년 전
부모
커밋
256f2fcf69
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      compiler/symcreat.pas

+ 2 - 1
compiler/symcreat.pas

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