alpha-970510: array problem.
Sun, 18 May 1997 13:43:09 +0100 (WET DST)
GPC alpha-970510 fails to compile this code:
-----------------------------
program ArrayTest(output);
type
node = 0..4500;
A = array[node] of integer;
var
N1 : A;
N2 : ^A;
begin
writeln('OK');
end.
-----------------------------
It barfs on the "var N2: ^A;" declaration.
This used to work with previous releases of GPC.
I can find no paragraph in the spec where it says that this declaration is
valid, but I believe it is. Anyway, it BP likes it, and now
`gpc -fborland-pascal' doesn't :-(
BTW: This is the first bug detected by the automated compiler suite I'm
writing, so I guess this proves the value of having such a thing.
JanJaap
---
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going
to land, and it could be dangerous sitting under them as they fly
overhead. -- RFC1925.
Jan-Jaap van der Heijden (janjaap@Wit381304.student.utwente.nl)
HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada -
Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es