Browse Source

* set def to a defined value in try_parse_structdef_nested_type, resolves #20802

git-svn-id: trunk@19759 -
florian 13 years ago
parent
commit
040c846fa1
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/ptype.pas

+ 1 - 0
compiler/ptype.pas

@@ -467,6 +467,7 @@ implementation
         structdef : tdef;
         structdefstack : tfpobjectlist;
       begin
+         def:=nil;
          { use of current parsed object:
            classes, objects, records can be used also in themself }
          structdef:=basedef;