[LLVMbugs] [Bug 14215] New: Analyzer failed on clang error: taking the address of a temporary object

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Oct 30 09:54:17 PDT 2012


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

             Bug #: 14215
           Summary: Analyzer failed on clang error: taking the address of
                    a temporary object
           Product: clang
           Version: 3.1
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Static Analyzer
        AssignedTo: kremenek at apple.com
        ReportedBy: fjoe at samodelkin.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Source code that causes analyzer to fail:

class A {
public:
    A(const char *);
};

void foo(A *);

void
bar()
{
    foo(&A("foo"));
}

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