diff options
Diffstat (limited to 'src/analyze.cpp')
| -rw-r--r-- | src/analyze.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/analyze.cpp b/src/analyze.cpp index 2d7c5e4331..0d73c4c3ee 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -3033,7 +3033,9 @@ static void recursive_resolve_decl(CodeGen *g, ImportTableEntry *import, AstNode AstNode *child_node = unresolved_entry->value; if (child_node->codegen_node->decl_node.in_current_deps) { - zig_panic("TODO infinite top level decl loop"); + // dependency loop. we'll let the fact that it's not in the respective + // table cause an error in resolve_top_level_decl. + continue; } // set temporary flag |
