This simple use of Lambda Expression makes the compiler crash (fatal error C1001) :struct S { };[] () { S s; };I tried multiple variations but this is the simplest form that would cause this.What triggers the bug is declaring a variable with a type that is locally declared (in the same function)It compiles properly when S is defined globally (before _tmain)The code as is compiles properly with g++
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results
Please wait...