In the attached test case, if the second lambda in the aggregate initializer has a local variable with a constructor, invoking the first function<> will call the second and then invoke UB (stack smash or uninitialized data access).
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...