Browse Source

Fix cycling with -CR option

Pierre Muller 3 years ago
parent
commit
e148afd506
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pdecl.pas

+ 1 - 1
compiler/pdecl.pas

@@ -969,7 +969,7 @@ implementation
               if (current_scanner.replay_stack_depth=0) and
               if (current_scanner.replay_stack_depth=0) and
                   (
                   (
                     (hdef.typ<>procvardef) or
                     (hdef.typ<>procvardef) or
-                    not (po_is_function_ref in tprocdef(hdef).procoptions)
+                    not (po_is_function_ref in tabstractprocdef(hdef).procoptions)
                   ) then
                   ) then
                 hdef.register_def;
                 hdef.register_def;
               { KAZ: handle TGUID declaration in system unit }
               { KAZ: handle TGUID declaration in system unit }