this C++ code crashes compiler:// *****************************************int _tmain(int argc, _TCHAR* argv[]){ typedef struct my_struct { int a; } my_struct; auto l = []()->bool{ my_struct a; return true; }; return 0;}// ****************************************during compilation error reported:**********************************1>------ Build started: Project: lambda_test, Configuration: Debug Win32 ------1>Build started 22.08.2012 13:53:18.1>InitializeBuildStatus:1> Touching "Debug\lambda_test.unsuccessfulbuild".1>ClCompile:1> All outputs are up-to-date.1> lambda_test.cpp1>lambda_test.cpp(14): fatal error C1001: An internal error has occurred in the compiler.1> (compiler file 'msc1.cpp', line 1420)1> To work around this problem, try simplifying or changing the program near the locations listed above.1> Please choose the Technical Support command on the Visual C++ 1> Help menu, or open the Technical Support help file for more information1>1>Build FAILED.1>1>Time Elapsed 00:00:07.22========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========**********************************thank you--Sergey
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results