Compiler generates an internal error when compiling following code----------------------------#include <vector>struct T{ std::vector<int> v;};std::vector<T>::iterator vec(std::vector<T>& v){ return v.begin();}int main(){ std::vector<T> v; v.push_back(T()); for(auto i: vec(v)->v) //here { }}---------------------------main.cpp(22): fatal error C1001: An internal error has occurred in the compiler.1> (compiler file 'f:\dd\vctools\compiler\utc\src\p2\ehexcept.c', line 965)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 information
Visual Studio/Team Foundation Server/.NET Framework Tooling Version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results