= cast<CXXConversionDecl>(
Best->Conversions[0].UserDefined.ConversionFunction);
+ // FIXME: access control
+
// We selected one of the surrogate functions that converts the
// object parameter to a function pointer. Perform the conversion
// on the object argument, then let ActOnCallExpr finish the job.
CommaLocs, RParenLoc).release();
}
+ if (getLangOptions().AccessControl)
+ CheckAccess(R, Best->Function, Best->getAccess());
+
// We found an overloaded operator(). Build a CXXOperatorCallExpr
// that calls this method, using Object for the implicit object
// parameter and passing along the remaining arguments.
public:
void operator+(Public&);
void operator[](Public&);
+ void operator()(Public&);
protected:
void operator+(Protected&); // expected-note {{declared protected here}}
void operator[](Protected&); // expected-note {{declared protected here}}
+ void operator()(Protected&); // expected-note {{declared protected here}}
private:
void operator+(Private&); // expected-note {{declared private here}}
void operator[](Private&); // expected-note {{declared private here}}
+ void operator()(Private&); // expected-note {{declared private here}}
void operator-(); // expected-note {{declared private here}}
};
void operator+(const A &, Public&);
a[pub];
a[prot]; // expected-error {{access to protected member}}
a[priv]; // expected-error {{access to private member}}
+ a(pub);
+ a(prot); // expected-error {{access to protected member}}
+ a(priv); // expected-error {{access to private member}}
-a; // expected-error {{access to private member}}
const A &ca = a;