range-based for and shared_ptr internal error - by jonathanmcdougall

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 751729 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 6/29/2012 8:23:09 AM
Access Restriction Public


#include <vector>
#include <memory>

struct D { std::vector<int> cs; };
std::shared_ptr<D> m();

int main()
 for (int o : m()->cs) {}

(9): fatal error C1001: An internal error has occurred in the compiler.
(compiler file 'f:\dd\vctools\compiler\utc\src\p2\ehexcept.c', line 965)
Sign in to post a comment.
Posted by Xiang [MSFT] on 7/2/2012 at 11:18 AM
    A fix for this issue has been checked into the compiler sources. The fix should show up in Visual Studio 2011 RTM.

Xiang Fan
Visual C++ Team
Posted by Microsoft on 7/2/2012 at 12:37 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 Microsoft on 6/29/2012 at 8:49 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)