C++ compiler allows use of unspecialized member function template - by Avery Lee

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 633274 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/24/2010 7:52:39 PM
Access Restriction Public


The C++ compiler allows a static member function template to be assigned to a function pointer without specialization. This produces invalid generated code that uses NULL as the function pointer instead of an expected compile error. I hit this when converting an existing static method to a template.
Sign in to post a comment.
Posted by Microsoft on 1/11/2011 at 4:07 PM
Hello Avery Lee,

Thanks for reporting this bug. Yes, this is a pretty bad bug, thanks for finding it. We're working on fixing it for next release.

Ulzii Luvsanbat
Windows C++ Team
Posted by Microsoft on 12/26/2010 at 6:34 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 12/24/2010 at 8:21 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)