Search

Template non-type member function pointer argument deduction error by Tacyt

Closed
as Deferred Help for as Deferred

1
1
Sign in
to vote
Type: Bug
ID: 775872
Opened: 1/5/2013 7:26:43 AM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
See the code here:
http://stackoverflow.com/q/14149297/469659

Above code compiles on gcc-4.3.4 and comeau 4.3.10.1, and fails on Visual C++ 9.0, 10.0 and 11.0.
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

Create an empty project, paste the code into main.cpp and compile.

Product Language

English

Operating System

Any

Operating System Language

Any

Actual results

error C2784: 'void bar(Type Base::* )' :
could not deduce template argument for 'overloaded function type'
from 'overloaded function type'; see declaration of 'bar'

Expected results

no errors :-)
File Attachments
0 attachments
Sign in to post a comment.
Posted by Microsoft on 1/6/2013 at 6:35 PM
Thank you for submitting feedback on Visual Studio 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 Microsoft on 1/5/2013 at 7:51 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.