Wood David wrote:
Running gpc20030323, again built with the gcc 3.2.1 backend, the segmentation fault goes away but the compiler now hangs in an endless loop when I compile any module that uses a particular unit I have. Doing --debug-source seems to show the compiler hanging part way through each module, but I haven't found a pattern to the code which causes it to stop.
You might be able to see more in the debugger. (Either run the compiler within gdb, or in this case it might be easier to attach gdb to the running compiler to see where it's looping.)
I've now run the gpc20030323 i686 binary (built with gcc 2.95.3) and I'm getting a new gpc1 segmentation fault. This occurs when I do
CASE i OF 0: Segmentation fault here BEGIN ... END;
It occurred because integer i was no longer defined. The declaration was the no longer valid i : static integer which needed to be i : integer attribute (static); Admittedly, fixing this cured the fault and it appears I may be able to compile everything with this binary (I still have a lot of changes to make). However, a segmentation fault is a nasty way of exiting the compiler.
Sure. Easy fix. Still, I'd *really* appreciate to get a complete test program, even if it's only a few lines!
Frank