]> granicus.if.org Git - clang/commit
AST: Limit zero-sized constexpr behavior to array types
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 08:40:47 +0000 (08:40 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 08:40:47 +0000 (08:40 +0000)
commite78343bd2b01bdd97388d648c95d794b82d0d971
treeafe8cda03a46cf0d65861dbfac75a01c4f5d8dbf
parent7ac2ac0e70c92114bcd1257db7d455aa965c82af
AST: Limit zero-sized constexpr behavior to array types

Restricting this "extension" to array types maximizes our standards
conformance while not miscompiling real-world programs.

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