Browse Source

* fix check for valid procdef in property rtti

peter 22 years ago
parent
commit
aadc6dbf2b
1 changed files with 6 additions and 2 deletions
  1. 6 2
      compiler/symdef.pas

+ 6 - 2
compiler/symdef.pas

@@ -5299,8 +5299,9 @@ implementation
              end
              end
            else
            else
              begin
              begin
+                { When there was an error then procdef is not assigned }
                 if not assigned(proc.procdef) then
                 if not assigned(proc.procdef) then
-                  internalerror(200310074);
+                  exit;
                 if not(po_virtualmethod in tprocdef(proc.procdef).procoptions) then
                 if not(po_virtualmethod in tprocdef(proc.procdef).procoptions) then
                   begin
                   begin
                      rttiList.concat(Tai_const_symbol.Createname(tprocdef(proc.procdef).mangledname));
                      rttiList.concat(Tai_const_symbol.Createname(tprocdef(proc.procdef).mangledname));
@@ -6107,7 +6108,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.186  2003-10-29 21:56:28  peter
+  Revision 1.187  2003-11-01 15:50:03  peter
+    * fix check for valid procdef in property rtti
+
+  Revision 1.186  2003/10/29 21:56:28  peter
     * procsym.deref derefs only own procdefs
     * procsym.deref derefs only own procdefs
     * reset paracount in procdef.deref so a second deref doesn't increase
     * reset paracount in procdef.deref so a second deref doesn't increase
       the paracounts to invalid values
       the paracounts to invalid values