[fpc-devel] Assignment to bitpacked record member that crosses byte boundary does not always work correctly (i386).

Jonas Maebe jonas.maebe at elis.ugent.be
Tue Jun 17 23:38:40 CEST 2008

On 17 Jun 2008, at 10:56, <RusselD at denelaviation.co.za> <RusselD at denelaviation.co.za 
 > wrote:

> The limited amount of testing done indicates that the record member
> bit8_1 only causes a problem with a value of $FF, but the interesting
> thing is that the result varies depending on program structure and
> compiler version: Different results are seen whith the same code in a
> procedure, in a 'with' statement, or if there is code in front of it
> etc. The result is NOT always incorrect.

The problem can occur both when assigning 0 and when assigning  
field_type(-1). I'll look into fixing it tomorrow.


More information about the fpc-devel mailing list