You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#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 with clang-19.1.0 and clang-20.1.0. Not reproducable with gcc 15.1.