Disallow the application of the unary * operator to integer constants.

It must only be applied to pointer types.
This commit is contained in:
Stephen Heumann 2016-12-19 22:19:36 -06:00
parent 4c0b02f32e
commit 60df52c268
1 changed files with 1 additions and 1 deletions

View File

@ -1302,7 +1302,7 @@ var
end;
uminus : op1 := -op1; {unary -}
uand : op1 := 0; {unary &}
uasterisk : op1 := 0; {unary *}
uasterisk : Error(79); {unary *}
otherwise: Error(57);
end; {case}
op^.token.kind := ekind;