[LLVMbugs] [Bug 13722] New: Address of stack memory associated with temporary object of type 'std::string' returned to caller
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Aug 28 14:41:21 PDT 2012
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: kremenek at apple.com
ReportedBy: roland at utk.edu
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list