Преглед на файлове

fixed a the check for pd.owner being assigned before defererencing it. this fixes a reproduceable compiler crash I ran into recently

git-svn-id: trunk@32965 -
Károly Balogh преди 9 години
родител
ревизия
4e14c292b0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      compiler/htypechk.pas

+ 1 - 1
compiler/htypechk.pas

@@ -2473,7 +2473,7 @@ implementation
                 ) or
                 ) or
                 (
                 (
                   (
                   (
-                    not pd.is_specialization or
+                    not pd.is_specialization and
                     assigned(pd.owner)
                     assigned(pd.owner)
                   ) and
                   ) and
                   (
                   (