|
@@ -10122,14 +10122,14 @@ IHqlScope * CHqlForwardScope::queryResolvedScope(HqlLookupContext * context)
|
|
//But currently painful in one context, so allow it to be omitted.
|
|
//But currently painful in one context, so allow it to be omitted.
|
|
Owned<IErrorReceiver> errorReporter = createThrowingErrorReceiver();
|
|
Owned<IErrorReceiver> errorReporter = createThrowingErrorReceiver();
|
|
HqlDummyLookupContext localCtx(errorReporter);
|
|
HqlDummyLookupContext localCtx(errorReporter);
|
|
- HqlLookupContext * activeContext = context ? context : &localCtx;
|
|
|
|
|
|
+ HqlLookupContext & activeContext = context ? *context : localCtx.ctx();
|
|
HqlExprArray syms;
|
|
HqlExprArray syms;
|
|
getSymbols(syms);
|
|
getSymbols(syms);
|
|
syms.sort(compareSymbolsByName); // Make errors consistent
|
|
syms.sort(compareSymbolsByName); // Make errors consistent
|
|
ForEachItemIn(i, syms)
|
|
ForEachItemIn(i, syms)
|
|
{
|
|
{
|
|
IIdAtom * cur = syms.item(i).queryId();
|
|
IIdAtom * cur = syms.item(i).queryId();
|
|
- ::Release(lookupSymbol(cur, LSFsharedOK, *activeContext));
|
|
|
|
|
|
+ ::Release(lookupSymbol(cur, LSFsharedOK, activeContext));
|
|
//Could have been fully resolved while looking up a symbol!
|
|
//Could have been fully resolved while looking up a symbol!
|
|
if (resolvedAll)
|
|
if (resolvedAll)
|
|
return resolved;
|
|
return resolved;
|