Browse Source

* register constant symbols

git-svn-id: trunk@43537 -
svenbarth 5 years ago
parent
commit
85637ad5fa
1 changed files with 2 additions and 0 deletions
  1. 2 0
      compiler/pdecl.pas

+ 2 - 0
compiler/pdecl.pas

@@ -239,6 +239,7 @@ implementation
                        sym.deprecatedmsg:=deprecatedmsg;
                        sym.deprecatedmsg:=deprecatedmsg;
                        sym.visibility:=symtablestack.top.currentvisibility;
                        sym.visibility:=symtablestack.top.currentvisibility;
                        symtablestack.top.insert(sym);
                        symtablestack.top.insert(sym);
+                       sym.register_sym;
 {$ifdef jvm}
 {$ifdef jvm}
                        { for the JVM target, some constants need to be
                        { for the JVM target, some constants need to be
                          initialized at run time (enums, sets) -> create fake
                          initialized at run time (enums, sets) -> create fake
@@ -295,6 +296,7 @@ implementation
                        sym.visibility:=symtablestack.top.currentvisibility;
                        sym.visibility:=symtablestack.top.currentvisibility;
                        symtablestack.top.insert(sym);
                        symtablestack.top.insert(sym);
                      end;
                      end;
+                   sym.register_sym;
                    current_tokenpos:=storetokenpos;
                    current_tokenpos:=storetokenpos;
                    { procvar can have proc directives, but not type references }
                    { procvar can have proc directives, but not type references }
                    if (hdef.typ=procvardef) and
                    if (hdef.typ=procvardef) and