My C++ compiler(MSVC++ 14.2 in Windows 10) ends without printing any error message when there is a runtime error like a segmentation fault.
For example,
std::shared<Foo> foo;
auto b = foo->bar; // segmenation fault, but ends without the error message
...
The compiler does not print the error message like Segmentation fault (core dumped)
Is there a way to set the compiler to print a runtime error message?