[fpc-pascal] Building compiler which stalls

2023-03-03 Thread Hairy Pixels via fpc-pascal
Following up I’m trying to rebuild my compiler from sources and something strange has happened. Here’s the build command I used and it builds the compiler up to step #2 but then when it copies the compiler to compiler/ppca64 things fall apart. I noticed the following command "make distclean” st

Re: [fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Michael Van Canneyt via fpc-pascal
On Fri, 3 Mar 2023, Dwight Schauer via fpc-pascal wrote: On 3/3/23 22:08, Hairy Pixels via fpc-pascal wrote: This caused me a nasty debugging confusion, it’s a bug right? In the program below the two parameters passed to TBinding.Create have the same address despite being function pointers t

Re: [fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Hairy Pixels via fpc-pascal
Thanks, I need to update my compiler! > On Mar 4, 2023, at 11:34 AM, Dwight Schauer via fpc-pascal > wrote: > > I modified the methods in question from your example and called them. They > were separate. > > This was already addressed. > > https://gitlab.com/freepascal.org/fpc/source/-/issue

Re: [fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Dwight Schauer via fpc-pascal
On 3/3/23 22:08, Hairy Pixels via fpc-pascal wrote: This caused me a nasty debugging confusion, it’s a bug right? In the program below the two parameters passed to TBinding.Create have the same address despite being function pointers to two different class methods. Calling them both call the s

Re: [fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Hairy Pixels via fpc-pascal
Ah maybe this is the target/platform. I’m on macOS: Target OS: Darwin for AArch64. > On Mar 4, 2023, at 11:17 AM, Dwight Schauer via fpc-pascal > wrote: > > 2022/09/28? > > Does not do this 3.3.1 [2023/03/02] for me. I get different addresses. Regards, Ryan Joseph __

Re: [fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Dwight Schauer via fpc-pascal
On 3/3/23 22:08, Hairy Pixels via fpc-pascal wrote: This caused me a nasty debugging confusion, it’s a bug right? In the program below the two parameters passed to TBinding.Create have the same address despite being function pointers to two different class methods. Calling them both call the s

[fpc-pascal] Function reference confuses function pointer?

2023-03-03 Thread Hairy Pixels via fpc-pascal
This caused me a nasty debugging confusion, it’s a bug right? In the program below the two parameters passed to TBinding.Create have the same address despite being function pointers to two different class methods. Calling them both call the same method which is clearly not correct. Free Pascal

[fpc-pascal] FPC crashes with Internal error 200502052 compiling shared library on m68k

2023-03-03 Thread Peter B via fpc-pascal
On Debian 12 (Bookworm) FPC release version 3.2.2 crashes on m68k when trying to build a shared library. See https://buildd.debian.org/status/package.php?p=doublecmd https://buildd.debian.org/status/package.php?p=c-evo-dh Scroll down to "Tail of log for ... m68k:" I have searched the bug tra