]> granicus.if.org Git - clang/commit
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)
commit5a376e2cb9be9cdb0146b7d5e4598554455bfb53
tree0a626b050614195d7fef5f7b9af77015e5dc16fe
parent40ec03f1e67dc52167cbd0a0644b0d19dced65bb
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.

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