Invalid line number in compiler output - by tarekon

Status : 

  Deferred<br /><br />
		The product team has reviewed this issue and has deferred it for consideration at a later time.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.


2
0
Sign in
to vote
ID 779195 Comments
Status Closed Workarounds
Type Bug Repros 1
Opened 2/14/2013 1:40:47 AM
Access Restriction Public

Description

C++ compiler prints wrong line number in error message for the last identifier in line in
multiline expression.

Example:
int function()
{
	return a + b
		+ c;
}

where all identifiers are undefined, compiler prints:

source.cpp(4): error C2065: 'b' : undeclared identifier
source.cpp(4): error C2065: 'c' : undeclared identifier

but "b" and "c" are placed on different lines.
Sign in to post a comment.
Posted by Helen [MSFT] on 2/14/2013 at 8:05 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.
Posted by Macy [MSFT] on 2/14/2013 at 1: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)