Home Dashboard Directory Help

Function pointer to templated function becomes that of non-templated function of the same name by Lasse Reinhold


 as Fixed Help for as Fixed

Sign in
to vote
Type: Bug
ID: 748530
Opened: 6/12/2012 3:38:58 AM
Access Restriction: Public
User(s) can reproduce this bug


Function pointer to templated function of a class is set to non-templated version if declaration and association of the pointer are on two different source code lines.

Happens only if templated function is a class member.

NOTE: I *think* I have also seen the same behaviour on *calls* to the templated version too...
Sign in to post a comment.
Posted by Microsoft on 9/6/2012 at 4:04 PM
Hi Lasse:
    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++.
    If you see similar issue when call function template with explicit template argument, could you give us a repro?

Xiang Fan
Visual C++ Team
Posted by Microsoft on 6/13/2012 at 12:58 AM
Thank you for submitting feedback on Visual Studio 11 and .NET Framework. Your issue has been routed to the appropriate VS development team for review. We will contact you if we require any additional information.

Posted by Microsoft on 6/12/2012 at 3:50 AM
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  
template.zip 6/12/2012 55 KB