Resolve top level variables, to make sure they are properly defined.

Variables within templates are not resolved in this way unless they are actually used.
This commit is contained in:
jez 2008-08-05 22:17:08 +01:00
parent b559feb7be
commit 843631092c

View file

@ -123,6 +123,8 @@ public:
const Scope& top = stack_.front();
for(Scope::const_iterator v = top.begin(), ve = top.end(); v != ve; ++v)
v->second->injectGlobalScope(top);
for(Scope::const_iterator v = top.begin(), ve = top.end(); v != ve; ++v)
lookup(top, v->first);
} // freezeTopLevel
void injectGlobalScope(const Scope& scope)