This commit is contained in:
peter 1998-11-23 12:51:31 +00:00
parent f224c7d84f
commit b7a7bfd115
2 changed files with 28 additions and 2 deletions

27
bugs/bug0183.pp Normal file
View File

@ -0,0 +1,27 @@
program Internal_Error_10;
type
PBug = ^TBug;
TBug = array[1..1] of boolean;
var
Left : PBug;
test : longint;
begin
New(left);
test := 1;
{ following shows internal error 10 only if the
array index is a var on both sides
( if either is a constant then it compiles fine, error only occurs if the
not is in the statement )
bug only appears if the array is referred to using a pointer -
if using TBug, and no pointers it compiles fine
with PBug the error appears
}
Left^[test] := not Left^[test];
end.

View File

@ -234,5 +234,4 @@ bug0163.pp missing <= and >= operators for sets.
bug0169.pp missing new(type) support for not object/class
bug0171.pp missing typecasting in constant expressions
bug0182.pp @record.field doesn't work in constant expr
bug0183.pp internal error 10