I was working on a code and found a sudden crash, in trying to find the problem, I made a project I hope someone can check and help me find the reason.
Requirements for the crash:
- A project calling an inline method from another unit that is in a package.
- The project has a static array and the method too needs assigning an array.
I copied the exact code for the unit in the project and everything is working fine. Removing inline works fine, removing one of the arrays works fine.
I checked the assembly code and there is only one line difference if I use the unit from the project:
Tested with Trunk FPC and Lazarus on Win X64.