[Lazarus] Fixes 2.6.2 cod breaks 2.6.0 code?

Vincent Snijders vincent.snijders at gmail.com
Wed Mar 13 17:52:59 CET 2013


2013/3/13 Frank Church <vfclists at gmail.com>:
> Upgrading to Lazarus 1.0.7 with FPC 2.6.2 raised this error in a file
> I was compiling? What does it mean?
>
> procedure TRxDBGrid.CheckNewCachedSizes(var AGCache: TGridDataCache);
> begin
>   if (rdgFooterRows in OptionsRx) and (FooterRowCount > 0) then
>     Dec(GCache.ClientHeight, DefaultRowHeight * FooterRowCount + 2);
> end;
>
> M:\Lazarus\ThirdPartyLibs\rx20\rxdbgrid.pas(2492,9) Error: Can't take
> the address of constant expressions
>
>
> Is the fixes branch supposed to introduce new functionality that can
> break code that compiled in previous releases?

What fixes branch are you talking about? FPC 2.6 fixes or Lazarus 1.0 fixes?

Anyway, if you exploited a bug, then a fix for that bug might break your code.

Vincent




More information about the Lazarus mailing list