]> granicus.if.org Git - clang/commit
constexpr: catch a collection of integral undefined behaviors:
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jan 2012 04:08:20 +0000 (04:08 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jan 2012 04:08:20 +0000 (04:08 +0000)
commit789f9b6be5df6e5151ac35e68416cdf550db1196
tree87f8516187102d1d023defd6e8ca49feaf65c4a2
parenta5888f61be9f8d76e9b48a453dbced50523bd2e0
constexpr: catch a collection of integral undefined behaviors:
  -INT_MIN and INT_MIN / -1
  Shift by a negative or too large quantity
  Left shift of negative value
  Overflow in left shift

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149344 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticASTKinds.td
lib/AST/ExprConstant.cpp
test/CXX/expr/expr.const/p2-0x.cpp