VS2012 C++ Compiler - Lambda Type as Template Parameter - by Timothy Shields

Status : 


Sign in
to vote
ID 788426 Comments
Status Active Workarounds
Type Bug Repros 1
Opened 5/22/2013 12:37:18 PM
Access Restriction Public


Transferring from my StackOverflow question:

There appears to be a compiler bug related to using a lambda type as a template parameter.  I haven't been able to precisely characterize it, but I have a very small (~20 lines) program that will generate the compiler error.  Hopefully someone with more expertise can start from my code, precisely characterize the problem, and identify what the compiler bug is here.

The "Steps to reproduce" section has the full code.

This is a blocking issue for me because, although the sample code I've given is a minimal toy program, the API for a library I'm developing requires the same form of code.  I haven't been able to figure out a workaround without significantly changing my API in undesirable ways.

Of course, if there's an explanation for why this problem I'm encountering is actually just because my C++11 code is incorrect, I'd like to know! Thanks!
Sign in to post a comment.
Posted by Microsoft on 11/11/2014 at 11:05 AM
Hi Timothy:
    Thanks for reporting the issue.
    A fix for this issue has been checked into the compiler sources. The fix should show up in the next major release of Visual C++.

Visual C++ Team
Posted by Microsoft on 7/9/2013 at 10:27 PM
Hi Timothy,

Thank you for taking the time to provide your feedback. After reviewing your reported issue, in the context of all the issues reported to us, we have decided not to take any action on this feedback at this time. We will re-consider our decision for a future release.

If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
For Microsoft premier customers, please contact your administrator, your Technical Account Manager, or your Microsoft premier account representative.

Karl Niu
Visual C++ Compiler Team
Posted by Microsoft on 5/22/2013 at 11:02 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 Microsoft on 5/22/2013 at 12:55 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)