Issue 153439
Summary [LifetimeSafety] Assertion failure on statement _expression_ in for-loop increment _expression_
Labels clang:temporal-safety
Assignees usx95
Reporter usx95
    ```cpp
void pr8880_3(int first) {
  for ( ; ; (void)({ if (first) { first = 0; continue; } 0; })) {}
}
```
https://godbolt.org/z/fj5TKn9s9

This is actually not related to lifetime safety though. We essentially cannot create the CFG here.
Even thread-safety crashes here. https://godbolt.org/z/3W4K6fcaf

_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to