mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-04 14:30:16 +00:00
Disallow dereferencing of non-pointer types in l-values.
This fixes #67.
This commit is contained in:
parent
a4abc5e421
commit
3676e685b9
|
@ -2207,6 +2207,8 @@ var
|
||||||
{load the address of the item pointed to by the pointer}
|
{load the address of the item pointed to by the pointer}
|
||||||
GenerateCode(tree^.left);
|
GenerateCode(tree^.left);
|
||||||
isBitField := false;
|
isBitField := false;
|
||||||
|
if not (expressionType^.kind in [pointerType,arrayType,functionType]) then
|
||||||
|
Error(79);
|
||||||
end {else if}
|
end {else if}
|
||||||
else if tree^.token.kind = dotch then begin
|
else if tree^.token.kind = dotch then begin
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user