mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-02 19:29:21 +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}
|
||||
GenerateCode(tree^.left);
|
||||
isBitField := false;
|
||||
if not (expressionType^.kind in [pointerType,arrayType,functionType]) then
|
||||
Error(79);
|
||||
end {else if}
|
||||
else if tree^.token.kind = dotch then begin
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user