authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-22 12:33:24-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-07-22 12:33:24-04:00
loga3327f0fbde0f7eebd6260bb5f47897599434bb4
tree396a0f3925bee52d5d555a8c280f4811863787c5
parentd6d0bb054219da26a55f880f48f00902a4fbaf56
signaturelock-open Commit is signed but in an unrecognized format.

fix usingnamespace analyzing the expression multiple times


1 files changed, 2 insertions(+), 1 deletions(-)

src/analyze.cpp+2-1
...@@ -3353,7 +3353,8 @@ static void resolve_use_decl(CodeGen *g, TldUsingNamespace *tld_using_namespace,...@@ -3353,7 +3353,8 @@ static void resolve_use_decl(CodeGen *g, TldUsingNamespace *tld_using_namespace,
33533353
3354static void preview_use_decl(CodeGen *g, TldUsingNamespace *using_namespace, ScopeDecls *dest_decls_scope) {3354static void preview_use_decl(CodeGen *g, TldUsingNamespace *using_namespace, ScopeDecls *dest_decls_scope) {
3355 if (using_namespace->base.resolution == TldResolutionOk ||3355 if (using_namespace->base.resolution == TldResolutionOk ||
3356 using_namespace->base.resolution == TldResolutionInvalid)3356 using_namespace->base.resolution == TldResolutionInvalid ||
3357 using_namespace->using_namespace_value != nullptr)
3357 {3358 {
3358 return;3359 return;
3359 }3360 }