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

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

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:

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

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson made changes - 10/Jul/11 07:34 PM
Field Original Value New Value
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 10/Jul/11 07:35 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]