aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-05-14 00:11:57 +0100
committergingerBill <bill@gingerbill.org>2024-05-14 00:11:57 +0100
commit20f8f9012d71fa9d95ff65a0badf844c9cbe4ddb (patch)
treef25b80cab9fede9badc42790876b4e2b410cbf13 /src/check_stmt.cpp
parent0cf9dcd31441a56856a60e4f73db4b005a1407ee (diff)
Attempt at fixing #3588
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 719a0da15..ee55ff0d7 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -776,6 +776,8 @@ gb_internal bool check_using_stmt_entity(CheckerContext *ctx, AstUsingStmt *us,
bool is_ptr = is_type_pointer(e->type);
Type *t = base_type(type_deref(e->type));
if (t->kind == Type_Struct) {
+ wait_signal_until_available(&t->Struct.fields_wait_signal);
+
Scope *found = t->Struct.scope;
GB_ASSERT(found != nullptr);
for (auto const &entry : found->elements) {