Issue 60914
Summary [MSVC][EH]clang-cl results in uncaught exception
Labels new issue
Assignees
Reporter Naville
    ```
#include <malloc.h>
#include <stdio.h>

struct Exn {};

int main() {
  try {
    static bool StaticVar = false;
    if (!StaticVar) {
      StaticVar = true;
    }

    volatile void* used = alloca(4);

    try {
      throw Exn();
    } catch (Exn &e) {
      throw;
 }
  } catch (Exn &) {
  }

  printf("Good\n");
  return 0;
}
```
![WXWorkCapture_16770503959714](https://user-images.githubusercontent.com/5205699/220550243-2bfac8bd-1251-4d5b-aaef-5f8c14c136b0.png)
We're currently using 16.0.0-RC2

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to