commit cdf2ef220d0bb146988bc074431133fcbbf2601a
parent f81c51801a0fb3f5c02675e20ba288cfb9949de8
Author: Drew DeVault <sir@cmpwn.com>
Date: Wed, 23 Dec 2020 12:19:09 -0500
Catch unary dereference + complex expression case
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -820,6 +820,9 @@ parse_scope_expression(struct parser *par)
case T_LNOT:
case T_TIMES:
case T_BAND: // unary-expression
+ if (indirect) {
+ assert(0); // TODO: Wrap in unary dereference
+ }
return parse_complex_expression(par);
default: // postfix-expression
value = parse_postfix_expression(par);