<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - False positive with two identical conditionals"
href="https://bugs.llvm.org/show_bug.cgi?id=33705">33705</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>False positive with two identical conditionals
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>4.0
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>NetBSD
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Static Analyzer
</td>
</tr>
<tr>
<th>Assignee</th>
<td>kremenek@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>coypu@sdf.org
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=18762" name="attach_18762" title="test case">attachment 18762</a> <a href="attachment.cgi?id=18762&action=edit" title="test case">[details]</a></span>
test case
Sorry the example is dumb, the original code had some logic between the
conditionals.
I get:
scan-build: Using '/usr/pkg/bin/clang-4.0' for static analysis
test.c:18:6: warning: Dereference of null pointer (loaded from variable 'a')
*a = 12;
~ ^
1 warning generated.
scan-build: 1 bug found.
scan-build: Run 'scan-view /tmp/scan-build-2017-04-18-203149-15179-1' to
examine bug reports.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>