Skip to content
Snippets Groups Projects
Commit 213316f2 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Handle ambiguous function declarations vs c++-like initialized declarations.

parent 0b294b41
No related branches found
No related tags found
No related merge requests found
......@@ -566,6 +566,11 @@ ResolveExpression::resolveBaseExpression(const QList<Result> &baseResults, int a
FullySpecifiedType ty = result.first.simplified();
Symbol *lastVisibleSymbol = result.second;
if (Function *funTy = ty->asFunctionType()) {
if (funTy->isAmbiguous())
ty = funTy->returnType().simplified();
}
if (accessOp == T_ARROW) {
if (lastVisibleSymbol && ty->isClassType() && ! lastVisibleSymbol->isClass()) {
// ### remove ! lastVisibleSymbol->isClass() from the condition.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment