AST: Incomplete types might be zero sized
authorDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Dec 2014 19:36:24 +0000 (19:36 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Thu, 11 Dec 2014 19:36:24 +0000 (19:36 +0000)
commit27db35878dccd6dd5e62130f644bf01939f56716
tree7b310f00f4bafae67049ac67c3ceac85e4a2e471
parent2521f36e5ddcadf8dc4bd9803c4ac74fc276f046
AST: Incomplete types might be zero sized

Comparing the address of an object with an incomplete type might return
true with a 'distinct' object if the former has a size of zero.
However, such an object should compare unequal with null.

llvm-svn: 224040
clang/lib/AST/ExprConstant.cpp
clang/test/SemaCXX/constant-expression-cxx11.cpp