I made an error converting a traditional for loop to a std::for_each with a lambda. Instead of getting diagnostics pointing out the error, the compiler failed with an internal compiler error. I've reduced the problem to a complete but small sample that reproduces the issue.This is not a blocking issue, as correcting the source code avoids the internal compiler error, but perhaps this is a mild symptom of a more serious problem. Also, without the compiler diagnostic, the error can be tough to spot. Intellisense doesn't seem to know about lambda capture rules, so there are no red squiggles pointing out the error.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results