Internal compiler error occurs while compiling the following code:#include <functional>int fun( std::function<void()> f ){ return 0;}int b = fun( []() { int i = 0; } );int main(){}Required elements of the bug:1. There must be a conversion of the lambda to std::function object to match function parameters,2. lambda passed to the function must have initialization of automatic variable.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results