Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,104
    • Issues 2,104
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #39490
Closed
Open
Created Nov 26, 2021 by Werner Pamler@wpamDeveloper

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)

What happens

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.

39490_-_TSpinEditEx_Currency_SameValue.zip

Edited Nov 26, 2021 by Werner Pamler
Assignee
Assign to
Time tracking