fatal error C1001: An internal error has occurred in the compiler in C++11 construction "for (int n : <temp object>)" - by _lee

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 744341 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 5/27/2012 1:15:30 PM
Access Restriction Public


Following C++11 code crashes the VC compiler, but successfully compiled by GCC.

(the code is not correct semantically, because scope of temporary objects is not defined for "FOR IN" statement)
Sign in to post a comment.
Posted by Microsoft on 5/29/2012 at 10:46 AM
We have fixed the problem in the compiler. And the fix will be included in our upcoming major product release.

Thanks for the bug report.
Posted by MS-Moderator08 [Feedback Moderator] on 5/28/2012 at 12:54 AM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 5/27/2012 at 1:42 PM
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)