Details
Details
Diff Detail
Diff Detail
Event Timeline
| clang/lib/AST/Interp/ByteCodeExprGen.cpp | ||
|---|---|---|
| 537 | Obviously, this patch also fixes ignoring InitListExprs. | |
| clang/test/AST/Interp/literals.cpp | ||
|---|---|---|
| 878 | 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.