Some arithmetic operations on nullptr do not generate an error - by sncon

Status : 

  Won't Fix<br /><br />
		Due to several factors the product team decided to focus its efforts on other items.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


3
0
Sign in
to vote
ID 505780 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 10/29/2009 1:09:49 PM
Access Restriction Public

Description

Some arithmetic operations on nullptr do not generate an error:

{
	auto x = nullptr;
	x++;		// no error
	x += 1;	// no error
	x = x + 1;	// error C2389: '+' : illegal operand 'nullptr'
}
Sign in to post a comment.
Posted by 6XGate on 1/8/2010 at 1:19 PM
This is related to the following feedback item:
https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=515684
Posted by Jonathan [MSFT] on 11/2/2009 at 10:43 AM
Hi: I can confirm that this is a bug with Visual C++. Unfortunately it does not meet the triage bar for the current release of Visual C++ - but we will keep the issue in our database and we will look at it again during the development phase of a future release of Visual C++.

Jonathan Caves
Visual C++ Compiler Team
Posted by Microsoft on 11/1/2009 at 9:04 PM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you
Posted by Microsoft on 10/30/2009 at 2:14 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)

If at any time your issue is closed unsatisfactorily, you may edit your issue via Connect and change the status to “Active.”

Thank you,
Visual Studio Product Team