From dde5cb9ed3baed10c1f396fbcc3d261570dc365e Mon Sep 17 00:00:00 2001 From: Abegail Jakop Date: Fri, 22 Aug 2014 11:28:28 -0400 Subject: [PATCH] PR12333: use parent for symresolution in delete array index --- elaborate.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elaborate.cxx b/elaborate.cxx index 5eee4ca5b..8bccad88d 100644 --- a/elaborate.cxx +++ b/elaborate.cxx @@ -2052,7 +2052,7 @@ delete_statement_symresolution_info: for (unsigned i=0; iindexes.size(); i++) if (e->indexes[i]->tok->type != tok_operator || e->indexes[i]->tok->content != "*") - e->indexes[i]->visit (this); + e->indexes[i]->visit (parent); symbol *array = NULL; hist_op *hist = NULL; @@ -2077,7 +2077,7 @@ delete_statement_symresolution_info: else { assert (hist); - hist->visit (this); + hist->visit (parent); } } -- 2.43.5