aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-04-20 17:25:26 -0700
committerAndrew Kelley <superjoe30@gmail.com>2016-04-20 17:25:26 -0700
commitae600d2f7f89989c297c036f189b7bedfde910af (patch)
treee3440d87c859553fc3c3c60ed612cf5fa0f8af24 /src/analyze.cpp
parent6acc354957752e2cfa8d67bdd0e4c3b42f9be3c3 (diff)
downloadzig-ae600d2f7f89989c297c036f189b7bedfde910af.tar.gz
zig-ae600d2f7f89989c297c036f189b7bedfde910af.zip
fix undeclared identifier not marking function as impure
Diffstat (limited to 'src/analyze.cpp')
-rw-r--r--src/analyze.cpp1
1 files changed, 1 insertions, 0 deletions
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;
}