Try to resolve the type in the scope of the declaration.

This commit is contained in:
Roberto Raggi
2010-07-09 10:11:30 +02:00
parent ba6b52ce14
commit 9d63e4a699

View File

@@ -604,7 +604,12 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), overload->scope()))
return retBinding;
else if (debug) {
else if (scope != overload->scope()) {
if (ClassOrNamespace *retBinding = findClass(ptrTy->elementType(), scope))
return retBinding;
}
if (debug) {
Overview oo;
qDebug() << "no class for:" << oo(ptrTy->elementType());
}