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

             Bug #: 13722
           Summary: Address of stack memory associated with temporary
                    object of type 'std::string' returned to caller
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    Classification: Unclassified


False positive for code:

#include <string>

std::string f()
{
    return "";
}

int main()
{
    f();
    return 0;
}

I get many more false positives for the new warning "Address of stack memory
associated...". But this is the most simple case.

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