http://llvm.org/bugs/show_bug.cgi?id=17009
Bug ID: 17009
Summary: redundant error on same undeclared identifier
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Testcase: void f() { return x+x+x+x; }
Do we really need to print out a use of undeclared identifier on each use of
'x'? Could we at least batch them by inner-most scope, if not by nearest
declcontext?
$ echo 'void f() { return x+x+x+x; }' | llvm/Debug+Asserts/bin/clang -x c -
<stdin>:1:19: error: use of undeclared identifier 'x'
void f() { return x+x+x+x; }
^
<stdin>:1:21: error: use of undeclared identifier 'x'
void f() { return x+x+x+x; }
^
<stdin>:1:23: error: use of undeclared identifier 'x'
void f() { return x+x+x+x; }
^
<stdin>:1:25: error: use of undeclared identifier 'x'
void f() { return x+x+x+x; }
^
4 errors generated.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs