[PATCH] D35562: Support GNU extension StmtExpr in constexpr function

2017-08-18 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg updated this revision to Diff 111632. sberg added a comment. (the original diff had inadvertently lacked full -U99 context; uploaded a new diff) https://reviews.llvm.org/D35562 Files: clang/lib/AST/ExprConstant.cpp clang/test/SemaCXX/constant-expression-cxx1y.cpp Index:

[PATCH] D35562: Support GNU extension StmtExpr in constexpr function

2017-07-18 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg created this revision. The assert.h in glibc 2.25 defines assert as a GNU-extension "statement expression", see https://sourceware.org/git/?p=glibc.git;a=commit;h=e077349ce589466eecd47213db4fae6b80ec18c4 "assert.h: allow gcc to detect assert(a = 1) errors". That caused Clang's