http://llvm.org/bugs/show_bug.cgi?id=9492
Summary: False positives concerning 'new' operator.
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Static Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Created an attachment (id=6329)
--> (http://llvm.org/bugs/attachment.cgi?id=6329)
Scan-Build results of 3 different examples.
Compilers where 'new' can return null do not conform to the C++ standard.
Therefore the bugs found by scan-build in the attached files (Analysis results
generated by scan-build, source can be viewed there), are false positives.
Dereferencing a pointer, initialized by using 'new', is not an error. If there
was an error allocating memory, an exception would be thrown. However, placing
the statements in a try-catch block still triggers the same "error", which is
not correct.
--
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