From e9c598a426bf5d06e8f4970c0e53183b8961ac6e Mon Sep 17 00:00:00 2001 From: Joseph Battelle Date: Mon, 14 Sep 2020 16:41:53 -0700 Subject: [PATCH] Fix issue #723 Typo in `check_stmt_internal` for case Ast_UsingStmt; first element was used for all elements of the enumerated list. --- src/check_stmt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 3adb2d04d..3e8c8802b 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1926,7 +1926,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { return; } for_array(i, us->list) { - Ast *expr = unparen_expr(us->list[0]); + Ast *expr = unparen_expr(us->list[i]); Entity *e = nullptr; bool is_selector = false;