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

             Bug #: 11550
           Summary: Missing warning for unused variables of a class type
                    with user declare constructor
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


We don't warn about
-------------------
struct S {
  S();
};
S foo();
void bar() {
  S x = foo();
}
-----------------

gcc 4.6 warns about x being "set but not used", which I don't think is
technically correct, but it is better than nothing.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to