]> granicus.if.org Git - clang/commit
Fix bug where a trivial constexpr copy/move operation couldn't copy from an
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Nov 2014 21:27:17 +0000 (21:27 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 19 Nov 2014 21:27:17 +0000 (21:27 +0000)
commitf794299a6a8aae4d609905e912515dc91e0af82e
tree06ebfe073fe4da7323028d8aff732cfe8acaef6f
parente6b5195e156f9a8a04ee2d403ec0aab8b59a9f7f
Fix bug where a trivial constexpr copy/move operation couldn't copy from an
empty non-constexpr object. Such a copy doesn't break any of the constexpr
rules.

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