summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2019-05-11 02:00:06 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2019-05-11 02:00:06 +0000
commitd05df0ef4362855405ae1df76572909fb0ff55b2 (patch)
treec7df3ec9c993ccbddb887b000470e5aa2ea1f3c0 /llvm/lib
parent61fb6700a569343ec1908043b9faac69c34168a5 (diff)
downloadbcm5719-llvm-d05df0ef4362855405ae1df76572909fb0ff55b2.tar.gz
bcm5719-llvm-d05df0ef4362855405ae1df76572909fb0ff55b2.zip
Reject attempts to call non-static member functions on objects outside
their lifetime in constant expressions. This is undefined behavior per [class.cdtor]p2. We continue to allow this for objects whose values are not visible within the constant evaluation, because there's no way we can tell whether the access is defined or not, existing code relies on the ability to make such calls, and every other compiler allows such calls. llvm-svn: 360499
Diffstat (limited to 'llvm/lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud