[LLVMbugs] [Bug 14795] New: -frewrite-includes sometimes results in incorrect line numbers
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Jan 4 12:09:49 PST 2013
http://llvm.org/bugs/show_bug.cgi?id=14795
Bug #: 14795
Summary: -frewrite-includes sometimes results in incorrect line
numbers
Product: clang
Version: 3.2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: l.lunak at suse.cz
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Files processed with -frewrite-includes sometimes produce incorrect line
numbers when later compiled:
$ clang++ -v
clang version 3.2
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat a.cpp
#if 0
#include "a.h"
#endif
foo bar;
$ clang++ a.cpp -c
a.cpp:4:1: error: unknown type name 'foo'
foo bar;
^
1 error generated.
$ clang++ -E -frewrite-includes a.cpp >a.ii
$ clang++ a.ii
In file included from a.ii:1:
a.cpp:7:1: error: unknown type name 'foo'
foo bar;
^
1 error generated.
The line number in the second error message is clearly incorrect.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list