[LLVMbugs] [Bug 13104] New: clang doesn't warn on identity assignments

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 13 09:15:18 PDT 2012


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

             Bug #: 13104
           Summary: clang doesn't warn on identity assignments
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: nicolasweber at gmx.de
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


tests-MacBook-Pro-2:src test$ cat test.cc
class A {
 public:
  void set_a(int a) {
    a_ = a_;  // <- bug
  }
 private:
  int a_;
};
tests-MacBook-Pro-2:src test$ ~/src/llvm-rw/Release+Asserts/bin/clang -c
test.cc -Wall
# no warning

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