call; the standard doesn't expect us to, and the program could be doing
something crazy. Fixes PR5882.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92166
91177308-0d34-0410-b5e6-
96231b3b80d8
// Also, in C++, keep track of whether we should perform argument-dependent
// lookup and whether there were any explicitly-specified template arguments.
- Expr *NakedFn = Fn->IgnoreParenCasts();
+ Expr *NakedFn = Fn->IgnoreParens();
if (isa<UnresolvedLookupExpr>(NakedFn)) {
UnresolvedLookupExpr *ULE = cast<UnresolvedLookupExpr>(NakedFn);
return BuildOverloadedCallExpr(Fn, ULE, LParenLoc, Args, NumArgs,
--- /dev/null
+// RUN: %clang_cc1 -emit-llvm-only %s -verify
+// PR5882
+
+int q_sk_num(void *a);
+typedef int (*fptr)(double);
+void a() { ((fptr)q_sk_num)(0); }