Home Dashboard Directory Help
Search

Access private function by _NN_


Status: 

Closed
 as Fixed Help for as Fixed


1
0
Sign in
to vote
Type: Bug
ID: 716372
Opened: 1/3/2012 8:33:55 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

#include <cstddef>

template <typename T> class Object
{
private:
        template <typename U>
        bool operator==(const Object<U>& other) const
        {
                return false;
        }
};

int main()
{
        Object<int> o1;
        Object<long> o2;

        (o1 == o2);

        return 0;
}
Details
Sign in to post a comment.
Posted by Microsoft on 1/4/2012 at 10:55 AM
Hi:
    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++ Team
Posted by MS-Moderator08 [Feedback Moderator] on 1/3/2012 at 10:41 PM
Thank you for submitting feedback on Visual Studio 2010 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 MS-Moderator01 on 1/3/2012 at 8:41 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.