فهرست منبع

* patch by rasberryrabbit to solve another internal error reported in #41487

florian 1 ماه پیش
والد
کامیت
975e5d0498
2فایلهای تغییر یافته به همراه6 افزوده شده و 2 حذف شده
  1. 1 2
      compiler/scanner.pas
  2. 5 0
      tests/webtbs/tw41487.pp

+ 1 - 2
compiler/scanner.pas

@@ -1587,13 +1587,12 @@ type
           dispose(pnormalset(value.valueptr));
         constguid :
           dispose(pguid(value.valueptr));
+        constnil,
         constpointer,
         constord,
         { error values }
         constnone:
           ;
-        else
-          internalerror(2013112802);
       end;
       inherited destroy;
     end;

+ 5 - 0
tests/webtbs/tw41487.pp

@@ -11,6 +11,11 @@ const
     {$MESSAGE 'ACONSTANT is not equal to b'}
   {$endif}
 
+const
+  ptr = nil;
+
+{$if ptr <> pointer(5)}
+{$endif}
 
 type
   PRECORD = ^TRECORD;