// being used.
if (FoundDecl != Fn && S.DiagnoseUseOfDecl(Fn, Loc))
return ExprError();
+ if (auto *FPT = Fn->getType()->getAs<FunctionProtoType>())
+ S.ResolveExceptionSpec(Loc, FPT);
DeclRefExpr *DRE = new (S.Context) DeclRefExpr(Fn, false, Fn->getType(),
VK_LValue, Loc, LocInfo);
if (HadMultipleCandidates)
template<typename T> struct A {
constexpr bool f() noexcept(true) { return true; }
constexpr bool g() { return f(); }
+ constexpr bool operator()() const noexcept(true) { return true; }
};
static_assert(A<int>().f());
static_assert(A<int>().g());
+ static_assert(A<int>()());
}