Compilation issue with fpc 3.2.2 in TSpinEditExBase when a descendant class work with currencies
- Lazarus/FPC Version: Lazarus 2.3.0 (rev main-2_3-841-g89162e9c) FPC 3.2.2 x86_64-win64-win32/win64
- Operating System: Windows (no issue with Linux)
- CPU / Bitness: 64 bit (no issue with 32 bit)
A TSpinEditEx descendant for currency values cannot be compiled on Windows with FPC3.2.2 for 64 bit because some methods in the basic class, TSpinEditExBase, call SameValue() of the math unit, and here the 64-bit compiler on Windows cannot "determine which overloaded function to call".
Steps to reproduce
I am attaching a simple demo project which reproduces the error. Trying to compile this project with FPC3.2.2/64bit on Windows fails with the above-mentioned error. Doing the same with FPC 3.2.0 is successful.