Hello!
I am using gpc version 970624(2.7.2.3) and I think there is something wrong.
I have one Borland Pascal style unit, with the following text:
def.p file:
UNIT modul; INTERFACE
TYPE CARDINAL = 0..65535; LONGBITSET = SET OF 0..63;
IMPLEMENTATION
END.
and I use it in the following program as I show:
test.p file:
program test; USES modul; var i:CARDINAL; c:LONGBITSET; begin c:=[1]; i:=1; if (i in c) then writeln('yes'); end.
I compile them (gpc -c def.p, gpc test.p) and the following error is displayed:
gpc: Internal compiler error: program gpc1 got fatal signal 11
when everything should work fine! what's wrong?
Thank you
Jose Oliver Gil - mailto: joliver@gap.upv.es Grupo de Arquitecturas Paralelas - DISCA Universidad Politécnica de Valencia - Spain
UNIT modul; INTERFACE
TYPE CARDINAL = 0..65535; LONGBITSET = SET OF 0..63;
IMPLEMENTATION
END.
program test; USES modul; var i:CARDINAL; c:LONGBITSET; begin c:=[1]; i:=1; if (i in c) then writeln('yes'); end.
On Tue, Feb 29, 2000 at 05:31:13PM +0100, Jose Oliver Gil wrote:
Hello!
I am using gpc version 970624(2.7.2.3) and I think there is something wrong.
Upgrade.
gpc: Internal compiler error: program gpc1 got fatal signal 11
when everything should work fine! what's wrong?
Exactly what the error message says - it's a bug internal to the compiler. I.E. GPC version 970624 (2.7.2.3) doesn't work right with that program. Since that version is over 2 years old, bug reports on that version aren't terribly useful. If you can't upgrade, you're going to have to find a way to work around it.