Unexpected error for legal code - by J Kanze

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 668375 Comments
Status Closed Workarounds
Type Bug Repros 2
Opened 5/13/2011 8:21:24 AM
Access Restriction Public


Attached program (which is legal C++) triggers an unexpected error "error C2893: Failed to specialize function template 'std::vector<Op::result_type> g(Op,It1,It1,It2)'".  Almost any change in the code will make it work: swap the order of the two overloads of 'g' or add a "using std::vector;", then delete all of the "std::", etc.
Sign in to post a comment.
Posted by Microsoft on 6/11/2011 at 7:27 PM
    A fix for this issue has been checked into the compiler sources.
    The fix should show up in the next release of Visual C++.

Xiang Fan
Visual C++ Compiler Team
Posted by MS-Moderator07 [Feedback Moderator] on 5/15/2011 at 8:33 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 MS-Moderator07 on 5/15/2011 at 6:24 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/)