pet_stmt_build_ast_exprs: ignore expression arguments not appearing in index
commit32cc78168a9ffbdc405396a2fa411f2f03a4b057
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Nov 2014 11:19:12 +0000 (21 12:19 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 21 Nov 2014 11:23:14 +0000 (21 12:23 +0100)
tree6d4c44578e90de5353066bfdeb0b33efd8693d2b
parent70df0a19a05fc304eaf5cad97014170acecc35e4
pet_stmt_build_ast_exprs: ignore expression arguments not appearing in index

We would fail to build an AST expression for an access with arguments
that are not themselves accesses, even if these arguments are not needed
to build the AST expression because they are not referenced in the index
expression of the access.
Ignore those arguments instead and update pet_stmt_can_build_ast_exprs
accordingly.

Reported-by: Michael Kruse <MichaelKruse@meinersbur.de>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
print.c