File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -3194,13 +3194,9 @@ bool Compiler<Emitter>::VisitStmtExpr(const StmtExpr *E) {
3194
3194
}
3195
3195
3196
3196
assert (S == Result);
3197
- if (const Expr *ResultExpr = dyn_cast<Expr>(S)) {
3198
- if (DiscardResult)
3199
- return this ->discard (ResultExpr);
3197
+ if (const Expr *ResultExpr = dyn_cast<Expr>(S))
3200
3198
return this ->delegate (ResultExpr);
3201
- }
3202
-
3203
- return this ->visitStmt (S);
3199
+ return this ->emitUnsupported (E);
3204
3200
}
3205
3201
3206
3202
return BS.destroyLocals ();
Original file line number Diff line number Diff line change @@ -1214,6 +1214,10 @@ namespace StmtExprs {
1214
1214
return 76 ;
1215
1215
}
1216
1216
static_assert (foo() == 76 , " " );
1217
+
1218
+ namespace CrossFuncLabelDiff {
1219
+ constexpr long a (bool x) { return x ? 0 : (long )&&lbl + (0 && ({lbl: 0 ;})); }
1220
+ }
1217
1221
}
1218
1222
#endif
1219
1223
You can’t perform that action at this time.
0 commit comments