auto -> decltype causes C1001 crash - by Valentin Z

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 729345 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 3/7/2012 3:31:41 AM
Access Restriction Public


Attached main.cpp defines a generic functor call_func<Func>. This functor takes a single argument t, passes t to a second functor of type Func, and returns the result.

The return type of call_func<Func>::operator()(T const&) depends on Func and T, so auto ... -> decltype ... is used.

However, when Func is of type call_func<Func2>, this leads to a C1001 compiler crash.
Sign in to post a comment.
Posted by Microsoft on 9/7/2012 at 4:50 PM
Hi Valentin:
    Thanks for reporting the issue, it is fixed in VS2012.

Xiang Fan
Visual C++ Team
Posted by MS-Moderator10 [Feedback Moderator] on 3/8/2012 at 12:20 AM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 3/7/2012 at 5: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(