Operator overloading / pointer to array type error
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
In the attached snippet, the compiler attempts to incorrectly apply the overloaded operator, when the result is an item of an array referred by a pointer.
If the type of vr is changed to "var vr : TVector" f.i., the issue does not occur.
Also note that issue still happens if PVector is a pointer to any array of single, not necessarily the same array as TVector, f.i. with
TMyArray = array [0..100] of Single;
PVector = ^TMyArray;
Additional information:
Reporter: Eric Grange
EMail: egrange at glscene dot org
Mantis conversion info:
- Mantis ID: 4896
- OS: WIN32
- Version: 1.9.1