Print better error messages when function overload resolution fails.

This commit is contained in:
Matt Pharr
2011-12-14 11:41:34 -08:00
parent 891919074e
commit 89a5248f4f
3 changed files with 41 additions and 114 deletions

View File

@@ -135,7 +135,7 @@ lPossiblyResolveFunctionOverloads(Expr *expr, const Type *type) {
for (int i = 0; i < funcType->GetNumParameters(); ++i)
paramTypes.push_back(funcType->GetParameterType(i));
if (fse->ResolveOverloads(paramTypes) == false)
if (fse->ResolveOverloads(expr->pos, paramTypes) == false)
return false;
}
return true;