From bb2676dbe3ddec918ca6be52e6101bb96428033f Mon Sep 17 00:00:00 2001 From: Alexey Prokhin Date: Tue, 19 Jul 2011 10:14:14 +0400 Subject: [PATCH] Fix unresolved symbol in the runnable/mixin2 test --- gen/declarations.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gen/declarations.cpp b/gen/declarations.cpp index 3eceefc8..03744af1 100644 --- a/gen/declarations.cpp +++ b/gen/declarations.cpp @@ -205,7 +205,16 @@ void TemplateInstance::codegen(Ir* p) void TemplateMixin::codegen(Ir* p) { - TemplateInstance::codegen(p); + if (!errors && members) + { + for (int i = 0; i < members->dim; i++) + { + Dsymbol *s = (Dsymbol *)members->data[i]; + if (s->isVarDeclaration()) + continue; + s->codegen(p); + } + } } /* ================================================================== */