Hi, me again! I've discovered another strange problem with GPC-19980830 which appears to be a bug. The following program produces a fatal signal 11 from gpc1:
-------cut----------- program MAPPER;
type PtNo = 1..5;
procedure DrawMap; var Sp: array [PtNo] of integer; begin end;
procedure PrintMap; var Sp: array [PtNo] of integer; begin end;
begin end. -------cut-----------
ida % gpc -c bug.p gpc: Internal compiler error: program gpc1 got fatal signal 11
I'm using gpc version 19980830, based on egcs-2.91.57 19980901 (egcs-1.1 release) on Redhat 5.1.
Now if I comment out either of the two procedure definitions above the problem goes away. Also if I change the var lines (either one or both of them) to:
var Sp: array [1..5] of integer;
That works ok too.
Any help/suggestions/bug-fixes gratefully received!!
Many thanks
Ian
-- Ian Thurlbeck http://www.stams.strath.ac.uk/ Statistics and Modelling Science, University of Strathclyde Livingstone Tower, 26 Richmond Street, Glasgow, UK, G1 1XH Tel: +44 (0)141 548 3667 Fax: +44 (0)141 552 2079