Home Dashboard Directory Help

auto -> decltype causes C1001 crash by Valentin Z


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 729345
Opened: 3/7/2012 3:31:41 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
User(s) can reproduce this bug


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(http://support.microsoft.com)
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
main.cpp 3/7/2012 562 bytes