]> granicus.if.org Git - clang/commit
Emit diagnostic note when calling an invalid function declaration.
authorJames Y Knight <jyknight@google.com>
Fri, 5 Oct 2018 17:49:48 +0000 (17:49 +0000)
committerJames Y Knight <jyknight@google.com>
Fri, 5 Oct 2018 17:49:48 +0000 (17:49 +0000)
commit3f6d5060de9d76c441d4104cb11fe380e99887f8
tree52c26a15cddcb979b3bba6a684cf73426da96dc9
parente3e8f2a67bc17cb4f751b22e53e16d7c39b371d0
Emit diagnostic note when calling an invalid function declaration.

The comment said it was intentionally not emitting any diagnostic
because the declaration itself was already diagnosed. However,
everywhere else that wants to not emit a diagnostic without an extra
note emits note_invalid_subexpr_in_const_expr instead, which gets
suppressed later.

This was the only place which did not emit a diagnostic note.

Differential Revision: https://reviews.llvm.org/D52919

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@343867 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp
test/SemaCXX/enable_if.cpp