[comp.sys.mac.programmer] MPW Pascal 3.2 bug with symbols

hnevanlinna@csc.fi (06/29/91)

(*********
This Pascal-program crashes MPW-pascal 3.2 from ETO#4 when
it's compiled with pascal -sym on. Without symbols it
compiles allright. 
On my mac-plus it crashes with 28, stack hit heap, MPW-
partition size 2600.
I had same problem for the same reason (read code) at work,
but on ci it crashes the MPW with illegal instruction.
( Maybe the bigger partition size helped it onward )
**********)

PROGRAM Bugger;

TYPE
	TArrayObject = OBJECT
		fArray: ARRAY[1..1] OF TArrayObject;
		      { ^^^^^
				this seems to crash the compiler
			    ie. cannot use arrays of same object
				as SELF
			  }
	END;

VAR
	rootObject: TArrayObject;
	secondObject: TArrayObject;
	
		
BEGIN

	New( rootObject );
	New( secondObject );
	rootObject.fArray[1] := secondObject;
	
END.

(**********	
I would have liked to use SourceBug on my MacApp-code,
but back to the writelns I go. ( I want my arrays )

            Jouni Ryno
			Finnish Meteorological Institute
			Geophysics Department
			
			e-mail: jryno@geopost.fmi.fi
			
		    You can also use the address this was posted from.
			ie. hnevanlinna@csc.fi. It belongs to my boss and
			I don't think he minds if I get my work done.
***********)