[comp.lang.pascal] Microsoft Pascal 4.0 bug

cb@sequoia.UUCP (Christopher D. Brown) (03/28/89)

Example source PAS.PAS:

	MODULE PAS;
	(*$INCLUDE:'NOTHER.E'*)
	PROCEDURE PAS; BEGIN END;
	END.

Further more PAS.PAS is in current directory. NOTHER.E exists nowhere. DirectoryINCLUDE does exist.

Example command line:

	pl -IINCLUDE -c PAS.PAS

Results in invalid machine instructions which crash my 386 machine.

terrell@druhi.ATT.COM (TerrellE) (03/30/89)

I remember seeing "benchmarking" data for various 68k Pascal compilers.
Included in this data was the code size of a "null" Pascal program, and
information about whether or not the "null" program ran when compiled.  Many
did not!

I thought this was ridiculous until I compiled a null program with my
compiler, and watched the executable crash...

Perhaps any null program will crash with MS Pascal?




Eric Terrell (att!druhi!terrell)