<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 - flang/lib/Semantics/check-declarations.cpp: 2 * strange use of bitwise operator"
href="https://bugs.llvm.org/show_bug.cgi?id=45532">45532</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>flang/lib/Semantics/check-declarations.cpp: 2 * strange use of bitwise operator
</td>
</tr>
<tr>
<th>Product</th>
<td>flang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</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>Fortran IR
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dcb314@hotmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>David.Truby@arm.com, eric.schweitz@pgroup.com, llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>1.
flang/lib/Semantics/check-declarations.cpp:860:66: style: Boolean result is
used in bitwise operation. Clarify expression with parentheses.
[clarifyCondition]
Source code is
} else if (!CheckDefinedOperatorArg(opName, specific, proc, 0) |
!CheckDefinedOperatorArg(opName, specific, proc, 1)) {
Maybe better code
} else if (!CheckDefinedOperatorArg(opName, specific, proc, 0) ||
!CheckDefinedOperatorArg(opName, specific, proc, 1)) {
2.
flang/lib/Semantics/check-declarations.cpp:950:78: style: Boolean result is
used in bitwise operation. Clarify expression with parentheses.
[clarifyCondition]
Duplicate.</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>