@PascalDragonCould you please explain ?The code-sample shows a very simple way of testing this.This issue has now been reproduced by some people.Just build FPC trunk and Lazarus trunk. And build+look at startlazarus.
I want one simple program file that I can use for testing that either halts with an exit code <> 0 if the error occurred or with an exit code = 0 if it didn't. And that doesn't need any special options to compile. Something that I can stuff into the compiler's testsuite once this bug is fixed.
That's why I'm asking someone to reproduce this with a simple example. I have enough other stuff to work on already.
Quote from: PascalDragon on May 06, 2020, 10:43:29 amThat's why I'm asking someone to reproduce this with a simple example. I have enough other stuff to work on already.Hi Sven.If I understand you correctly, then the problem is easy to reproduce. You must (for Windows) build any trunk compiler after revision 45216, then build the latest version of Lazarus and try to run the IDE using starlazarus.exe. This is true for both x32 and x64.If necessary, I will give a step-by-step code on how this error is reproduced by me.
Sorry about this. I have tried to isolate this issue, but did not succeed.GetExeExt works everywhere in my tests, except in startlazarus.I think it is related to the inline changes of commit 45217.
Quote from: DonAlfredo on May 06, 2020, 12:47:30 pmSorry about this. I have tried to isolate this issue, but did not succeed.GetExeExt works everywhere in my tests, except in startlazarus.I think it is related to the inline changes of commit 45217.If you can show that startlazarus fails with 45217, but succeeds with 45216 you can open a bug report with that information as well.
Quote from: PascalDragon on May 06, 2020, 01:51:48 pmQuote from: DonAlfredo on May 06, 2020, 12:47:30 pmSorry about this. I have tried to isolate this issue, but did not succeed.GetExeExt works everywhere in my tests, except in startlazarus.I think it is related to the inline changes of commit 45217.If you can show that startlazarus fails with 45217, but succeeds with 45216 you can open a bug report with that information as well.Unlikely, since that is a z80 related change. More likely 2-3 revs before when there was some inline related work.
Bugger filed.https://bugs.freepascal.org/view.php?id=37034