post-increment/post-decrement operators, be sure to consider both
arguments. Fixes PR6237.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95361
91177308-0d34-0410-b5e6-
96231b3b80d8
// Add candidates from ADL.
AddArgumentDependentLookupCandidates(OpName, /*Operator*/ true,
- Args, 1,
+ Args, NumArgs,
/*ExplicitTemplateArgs*/ 0,
CandidateSet);
(void)(x + x);
}
+namespace PR6237 {
+ template <typename T>
+ void f(T t) {
+ t++;
+ }
+
+ struct B { };
+ B operator++(B &, int);
+
+ template void f(B);
+}
+
struct Addable {
Addable operator+(const Addable&) const;
};