Oops! use the right base type when searching for overloads of operator->().

This commit is contained in:
Roberto Raggi
2010-05-12 15:31:00 +02:00
parent 7edde41d7e
commit 31b632d6fb

View File

@@ -598,7 +598,7 @@ ClassOrNamespace *ResolveExpression::baseExpression(const QList<LookupItem> &bas
if (ClassOrNamespace *binding = findClass(ptrTy->elementType(), scope))
return binding;
} else if (ClassOrNamespace *binding = findClass(ptrTy->elementType(), scope)) {
} else if (ClassOrNamespace *binding = findClass(ty, scope)) {
// lookup for overloads of operator->
const OperatorNameId *arrowOp = control()->operatorNameId(OperatorNameId::ArrowOp);