cameron314 added inline comments.
================
Comment at: cfe/trunk/lib/Sema/SemaOverload.cpp:6365
cast<CXXMethodDecl>(FD)->getParent(), ObjectType,
- ObjectClassification, Args.slice(1), CandidateSet,
+ ObjectClassification, FunctionArgs, CandidateSet,
SuppressUserConversions, PartialOverloading);
----------------
This breaks normal (non-static) method overload resolution, since the `this`
argument is now passed to `AddMethodCandidate` which is not expecting it. It
always thinks too many arguments are passed to methods with no parameters; most
other calls to `AddMethodCandidate` in SemaOverload.cpp don't pass the implicit
`this`.
Repository:
rL LLVM
https://reviews.llvm.org/D36390
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits