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

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

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

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 Sun Apr 22 20:14:57 CEST 2018 using JIRA Enterprise Edition, Version: 3.13.1-#333.