The following program, compiled on the command-line (x64 Debug Build in this case) with:cl /EHs test.cppwill crash at run-time instead of get caught in the exception handler.int main(){ try { const // comment out, and the program works size_t size = 1ULL << 34; char* ptr = new char[size]; ptr[size-1] = 0; delete[] ptr; return 0; } catch (...) {} return 1;}If the "const" is removed, the program will run without crashing.This seems to be a long-standing issue, demonstrable in Visual C++ 2005, Visual C++ 2008, Visual C++ 2010, 2010 SP1, and SDK 7.1.
Visual Studio/Silverlight/Tooling version
What category (if any) best represents this feedback?
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...