Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
---|---|---|
477 | Obviously, this patch also fixes ignoring InitListExprs. |
clang/test/AST/Interp/literals.cpp | ||
---|---|---|
900 | Can you also add a test like: constexpr int oh_my(int x) { (int){ x++ }; return x; } static_assert(oh_my(0) == 1); and constexpr int oh_my(int x) { int y{x++}; return x; } static_assert(oh_my(0) == 1); |
Obviously, this patch also fixes ignoring InitListExprs.