Issue |
147515
|
Summary |
[Clang] -fno-exceptions not respected in combination with -fopenmp
|
Labels |
clang
|
Assignees |
|
Reporter |
kalvdans
|
I tried to compile
```
#include <stdexcept>
int f() {
throw std::invalid_argument("hej");
}
```
with `clang -O2 -fopenmp -fno-exceptions -c test.cpp` and it works. If I remove the `-fopenmp` flag it correctly fails since we can't throw without exceptions being turned on.
Reproduced on (godbolt)[https://godbolt.org/z/5zvP5aWdM] with clang-19.1.0 and clang-20.1.0. Not reproducable with gcc 15.1.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs