Код: Выделить всё
#include
#include
#include
void run() {
std::vector v;
throw std::runtime_error("error");
}
int main() {
try {
run();
} catch (const std::exception &e) {
std::cerr
Подробнее здесь: [url]https://stackoverflow.com/questions/77374525/c-exception-not-caught-on-clang-17-0-3[/url]
Мобильная версия