PR43519: don't inject a diagnostic when constant-evaulation of a
authorRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 01:20:27 +0000 (01:20 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Thu, 3 Oct 2019 01:20:27 +0000 (01:20 +0000)
commit5258202a81598e8f6f97751a0b0045e5aa1b8978
tree1e99374adb67115d5e943784b0cb6d105ea48ade
parent30c8df02ba22a2f9b2af44714f382e2e4a4aafdb
PR43519: don't inject a diagnostic when constant-evaulation of a
pointer-to-member call can't determine a callee.

We will have produced a diagnostic already if the callee is known to be
unevaluatable, and diagnosing here rejects valid code during potential
constant expression checking.

llvm-svn: 373553
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp