<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </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 --- - Compiler should not warn about operator precedence by default"
   href="https://llvm.org/bugs/show_bug.cgi?id=31415">31415</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler should not warn about operator precedence by default
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </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>-New Bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fuzxxl@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>clang has a number of diagnostics warning about code that uses the C operator
precedence table in a way some programmers misunderstand. This category of
warnings is occasionally useful in catching bugs.

However, these warnings should not be enabled by default (i.e. without any
-W... switched) as they usually do not indicate incorrect code. Indeed, full
usage of the C operator precedence rules is *not* indicative of a wrong program
and clang warning about that causes an exceptional amount of noise during
compilation of perfectly fine code. As by the guideline that all default
warnings should only be warnings that indicate serious problems or likely
mistakes, I believe that operator precedence warnings should not be enabled by
default. I request that they be disabled by default and only enabled if
explicitly requested (e.g. with -Wall).</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>