Home Dashboard Directory Help
Search

[C++] No warning when returning r-value-references to locals / temporaries by CodingCat


Status: 

Closed
 as Fixed Help for as Fixed


4
0
Sign in
to vote
Type: Bug
ID: 682689
Opened: 8/2/2011 10:48:11 AM
Access Restriction: Public
Moderator Decision: Sent to Engineering Team for consideration
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

The VC++ 2010 compiler correctly warns when returning l-value-references to local objects, but it fails to do the same for r-value-references.
Details
Sign in to post a comment.
Posted by Microsoft on 1/9/2012 at 8:01 AM
Hi: this issue has been fixed. The fix should show up in a future release of Visual C++.

Thank you for reporting the issue.

Jonathan Caves
Visual C++ Compiler Team
Posted by MS-Moderator08 [Feedback Moderator] on 8/2/2011 at 7: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 8/2/2011 at 11: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.