Commit 31b632d6 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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

parent 7edde41d
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment