]> granicus.if.org Git - clang/commit
constexpr: the result of a relational operator between pointers to void is
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jan 2012 06:41:30 +0000 (06:41 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 31 Jan 2012 06:41:30 +0000 (06:41 +0000)
commit82f28583b8e81ae9b61635a0652f6a45623df16d
tree0c115e17cc6345a73e0627e2afde2cf40e3b9315
parentff8f9ec8336c62b5e3504e2a394f4b25c0cb1963
constexpr: the result of a relational operator between pointers to void is
unspecified unless the pointers are equal; therefore, such a comparison is not
a constant expression unless the pointers are equal.

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