Re: [fpc-pascal] Internal error 200706094

2014-09-30 Thread leledumbo
How can I rewrite this code to make it correct? I want to use constants to calculate offsets from untyped pointer. You don't have to: http://wiki.freepascal.org/Lazarus_Faq#.27Fatal:_Internal_error_YYZZW.27 so just report and wait for a fix, or fix it yourself if you can then post a patch

[fpc-pascal] Internal error 200706094

2014-09-29 Thread Victor Matuzenko
Hi! I have a large project and it compiles under 32 bits cpu, but doesn't under 64 bits. Here is a minimal problematic part: = [doj@larion ~/temp]$ cat ptrtransform.pas {$MODE OBJFPC} const C = -1; var A: array[0..1] of Pointer; begin

Re: [fpc-pascal] Internal error 200706094

2014-09-29 Thread waldo kitty
On 9/29/2014 5:48 AM, Victor Matuzenko wrote: IMO the problem is the transformation -1 into an unsigned value. (Unsigned(-1) Max(Signed).) How can I rewrite this code to make it correct? I want to use constants to calculate offsets from untyped pointer. have you tried using a typed const?