Willett Kempton wrote:
program file attached is a program missing a "}" which should get compilation error, but which compiles without errors and when run, gets a "Segmentation fault" and quits.
tested on GNU Pascal version 20030830, based on gcc-3.3.2
Form your program:
begin { LoadTranFunctions NextT := -MaxInputFields; LoadOne(1,TFCopy,PropSentinel); { put first names into workspace (PropSentinal=workspace } ^^^^ comment ends here.
Gpc treats anything from opening brace to closed brace as a comment (it _may_ contain another opening brace). That behaviour is mandated by the Pascal standard.
Use `--nested-comments' option to require balanced braces in the comment.