http://llvm.org/bugs/show_bug.cgi?id=15166
Bug ID: 15166
Summary: False positive on dereference of null pointer warning
Product: clang
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Using the static analyzer from the checker-270 build for MacOSX on the
following
C++ source:
============================
void set_x(void *&);
int foo(void)
{
int *x = 0;
set_x((void *&)x);
return *x;
}
============================
results in:
warning: Dereference of null pointer (loaded from variable 'x')
This doesn't happen if the "void" is replaced by "int".
--
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