[LLVMbugs] [Bug 5933] New: bogus unused variable warning after error

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Jan 3 22:52:14 PST 2010


           Summary: bogus unused variable warning after error
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Keywords: quality-of-implementation
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu, rjmccall at apple.com

$ cat t2.c 

int foo() {
  int X = 4;
  return Y + X;
$  clang t2.c -Wall
t2.c:4:10: error: use of undeclared identifier 'Y'
  return Y + X;
t2.c:3:7: warning: unused variable 'X' [-Wunused-variable]
  int X = 4;

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