__uptr/__sptr improperly allowed; Intellisense gets it right - by Aaron J Ballman

Status : 


Sign in
to vote
ID 786723 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 5/10/2013 9:28:31 AM
Access Restriction Public


The documentation on __sptr and __uptr explicitly states that it cannot be used with pointers to members.  (http://msdn.microsoft.com/en-us/library/aa983399.aspx)

A simple test with pointers to member yields interesting results.  With the code below, Intellisense correctly says "Error: __sptr and __uptr don't apply to pointer-to-member types", but the code compiles cleanly.
Sign in to post a comment.
Posted by Microsoft on 5/20/2013 at 6:13 PM
Hi Bud,

Thank you for taking the time to provide your feedback. After reviewing your reported issue, in the context of all the issues reported to us, we have decided not to take any action on this feedback at this time. We will re-consider our decision for a future release.

If this issue is severe, causing critical business situations or blocking your product development or deployment, please go to http://support.microsoft.com or call 1-800-MICROSOFT for assistance.
For Microsoft premier customers, please contact your administrator, your Technical Account Manager, or your Microsoft premier account representative.

Visual C++ Compiler Team
Posted by Microsoft on 5/12/2013 at 11:25 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 5/10/2013 at 9:53 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)
Posted by Aaron J Ballman on 5/10/2013 at 9:31 AM
Not that the attached image shows VS 2010, but I've verified the same behavior in VS 2012 CP 2

f:\>cl "f:\Aaron Ballman\My Documents\Visual Studio 2010\Projects\Tester\main.cpp"
Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60315.1 for x86
Copyright (C) Microsoft Corporation. All rights reserved.

Microsoft (R) Incremental Linker Version 11.00.60315.1
Copyright (C) Microsoft Corporation. All rights reserved.

LINK : fatal error LNK1561: entry point must be defined