[lazarus] Compile freezes up ??

Andrew Johnson acjgenius at earthlink.net
Fri Oct 25 13:43:19 EDT 2002


Karl Brandt wrote:

> Andrew Johnson wrote:
> (...)
>
> >> graphicsmath.pp uses only Classes, SysUtils and Math, and when i try
> >> to compile it manually (alone) the same error occurs. I don't think
> >> that the error resides in  interdependent units
> >
> >
> >
> > No. this is definately a problem with overloaded operators. AFAIK all
> > definitions are valid, which means it has to be a compiler issue.
> > Since this does not occur at all in current versions of the 1.1
> > compiler, and from what I am understanding, only sometimes/with
> > certain versions of 1.0.7, I can only assume this is a problem in the
> > 1.0.6 compiler which has finally been fixed in later/more recent
> > versions of the compiler in CVS. I can only guess at this, but my
> > first thought is that it is
> >
> > operator := (TFloatPoint) : TPoint;
> >
> > that is causing this problem, so Karl, why don't you try disabling
> > this operator and see if it still happens. If it does, try disabling the
> >
> > operator := (TPoint) : TFloatPoint;
>
>
> If i disable one of the two, the unit compiles fine.
>
> >
> >
> > it may be that having both these definitions at the same time is
> > causing some sort of compiler loop in one of the routines which uses
> > TFloatPoint's (such as BezierMidPoint). I will see if I can't get an
> > old version of the compiler installed on another computer to test it
> > and compare with other versions and try and duplicate this bug.
> >
> > Andrew
>
I'te. I have added a IfnDef ver1_0 on the TPoint := TFloatPoint. This 
one isn't really as needed anyway. It would be better though if I could 
add some sort of

{$Ifdef FPC1_0_8}so that on 1.0.8 or higher it was enabled too.

Andrew






More information about the Lazarus mailing list