fatal error C1001: An internal error has occurred in the compiler. - by Jinhao.CPP

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 760771 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 9/1/2012 12:20:35 AM
Access Restriction Public


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;

	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
Sign in to post a comment.
Posted by Xiang [MSFT] on 9/5/2012 at 4:10 PM
Hi Jinhao,
    Thanks for reporting the issue.
    It is fixed in VS2012 RTM.

Xiang Fan
Visual C++ Team
Posted by Macy [MSFT] on 9/2/2012 at 7:52 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Helen [MSFT] on 9/1/2012 at 12:52 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)