aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2022-08-26 12:11:27 +0100
committergingerBill <bill@gingerbill.org>2022-08-26 12:11:27 +0100
commit776927709bbf274a8c7d63dcff250726a90cf3a3 (patch)
treef3bf2bfd1d69b1efc8ceb0ebec86b6316a37311b /src/check_stmt.cpp
parentaf1b3b6368ffe690ba7f395920fd658b575fa042 (diff)
Check for `using` variables
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 133ca581f..884c7b5ae 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1400,7 +1400,7 @@ bool check_expr_is_stack_variable(Ast *expr) {
expr = unparen_expr(expr);
Entity *e = entity_of_node(expr);
if (e && e->kind == Entity_Variable) {
- if (e->flags & EntityFlag_Static) {
+ if (e->flags & (EntityFlag_Static|EntityFlag_Using)) {
// okay
} else if (e->Variable.thread_local_model.len != 0) {
// okay