Issue Details (XML | Word | Printable)

Key: PCC-370
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Trivial Trivial
Assignee: Anders Magnusson
Reporter: TAKAHASHI Tamotsu
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
pcc

wrong line number after "#define \\\n\\\n"

Created: 09/Jul/11 03:42 PM   Updated: 10/Jul/11 07:35 PM
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File wtr.diff (1 kB)



 Description  « Hide
When a #define contains multiple lines, warnings after it will have wrong line numbers.
Try "pcc -Wtruncate" below:

{code}
#define d \
\
\
\
\
\
c
int main(){
  long long a = 0;
  int b = a;
  return b;
}
{code}


 All   Comments   Change History      Sort Order: Descending order - Click to sort in ascending order
Anders Magnusson added a comment - 10/Jul/11 07:35 PM
Fixed, thanks! The wrong truncate warning order fixed but in a different way than the patch. Thanks for the bug reports!