]> granicus.if.org Git - clang/commit
Allow constexpr variables' initializers to be folded in C++11 mode. This
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Nov 2011 03:22:51 +0000 (03:22 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 7 Nov 2011 03:22:51 +0000 (03:22 +0000)
commitcd689927139d3ab52c0c088521633c661bd2d807
tree6e897a6d30d8f9e89d6db2bf8c20c89078c4a7d0
parentb37fe61e661453800f826897706b1d75f98dd7c1
Allow constexpr variables' initializers to be folded in C++11 mode. This
partially undoes the revert in r143491, but does not introduce any new instances
of the underlying issue (which is not yet fixed) in code which does not use
the 'constexpr' keyword.

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