[LLVMbugs] [Bug 14776] New: Missing warning for unused auto variable

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 1 21:19:00 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=14776

             Bug #: 14776
           Summary: Missing warning for unused auto variable
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


In the following test we warn about 'a' being unused, but not b:

namespace {
  struct X {};
}
X a = X();
auto b = X();

-- 
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