[LLVMbugs] [Bug 17009] New: redundant error on same undeclared identifier

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Aug 26 21:12:18 PDT 2013


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: unassignedclangbugs at nondot.org
          Reporter: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130827/039151f3/attachment.html>


More information about the llvm-bugs mailing list