From ae600d2f7f89989c297c036f189b7bedfde910af Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 20 Apr 2016 17:25:26 -0700 Subject: fix undeclared identifier not marking function as impure --- src/analyze.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/analyze.cpp') diff --git a/src/analyze.cpp b/src/analyze.cpp index 7556597726..73839716e0 100644 --- a/src/analyze.cpp +++ b/src/analyze.cpp @@ -2814,6 +2814,7 @@ static TypeTableEntry *analyze_symbol_expr(CodeGen *g, ImportTableEntry *import, return g->builtin_types.entry_invalid; } + mark_impure_fn(context); add_node_error(g, node, buf_sprintf("use of undeclared identifier '%s'", buf_ptr(variable_name))); return g->builtin_types.entry_invalid; } -- cgit v1.2.3