Type consistency mismatch in object
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
Trying to recompile with FPC 2.0 an object implementing dynamic arrays (from contributed unit miscellaneous: DynArray written in 2002). I know that dynamic arrays are in FPC2.0, but.....I found a compilation error linked with type. After investigations I traced back the problem to the kind of program attached. If Offset:=longint(Offset); is replaced by Offset:=Offset; there is a compilation abort identified as type mismatch.
That occurs only if there is an argument within the function, without argument: D_Array.Offset() the problem doesn't occurs. I work around it with a cast but it seems to me that this is a compiler bug. It doesn't occur with previous compiler versions.
Feel free to ask any detail you would like.
Best regards.
Jean-François Soucaille
Additional information:
Reporter: Jean-François Soucaille
EMail: jeanfrancoisoucaille at yahoo dot com
Mantis conversion info:
- Mantis ID: 6169
- OS: Win32