[LLVMbugs] [Bug 13848] New: false positive "Undefined or garbage value returned to caller" on function returning void

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Sep 14 11:31:38 PDT 2012


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

             Bug #: 13848
           Summary: false positive "Undefined or garbage value returned to
                    caller" on function returning void
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: richard-llvm at metafoo.co.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


See more-or-less any of the "Undefined or garbage value returned to caller"
diagnostics here:

http://lbalbalba.x90x.net/clang-analyzer/llvm-clang/r163746/

False positives are of this form (though this specific example doesn't seem to
trigger the bug):

void f() {}
void g() { return f(); }

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