<< Back to previous view

[PCC-370] wrong line number after "#define \\\n\\\n" Created: 09/Jul/11  Updated: 10/Jul/11

Status: Resolved
Project: pcc
Component/s: C preprocessor
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Trivial
Reporter: TAKAHASHI Tamotsu Assignee: Anders Magnusson
Resolution: Fixed Votes: 0

File Attachments: File wtr.diff    

 Description   
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}


 Comments   
Comment by Anders Magnusson [ 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!
Generated at Fri Oct 31 14:34:33 CET 2014 using JIRA Enterprise Edition, Version: 3.13.1-#333.