]> granicus.if.org Git - clang/commit
C++11 generalized constant expressions: implement checking and diagnostics for
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 6 Jan 2012 16:39:00 +0000 (16:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 6 Jan 2012 16:39:00 +0000 (16:39 +0000)
commitb4e85ed51905fc94378d7b4ff62b06e0d08042b7
tree341e01d1fbaa36582a5ae93ff542995cf2fe1af1
parentf143ffc4a9af79ac1d822fea6995af4bf45d17dc
C++11 generalized constant expressions: implement checking and diagnostics for
pointer-arithmetic-related undefined behavior and unspecified results. We
continue to fold such values, but now notice they aren't constant expressions.

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