<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 - A `[system]` module built with `-Wdelete-non-virtual-dtor` can't suppress this warning in importers"
   href="https://bugs.llvm.org/show_bug.cgi?id=39592">39592</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>A `[system]` module built with `-Wdelete-non-virtual-dtor` can't suppress this warning in importers
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </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>Modules
          </td>
        </tr>

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

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

        <tr>
          <th>CC</th>
          <td>dgregor@apple.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I'm actually not entirely sure this is a bug, so apologies for the noise if
not.

If a module with the `[system]` attribute is built with
`-Wdelete-non-virtual-dtor`, any importers/users that use a templated function
that would otherwise trigger that warning cannot suppress it (despite building
with `-w` and despite the module being marked as `[system]`).

That said, it seems a straightforward fix is not using warnings when compiling
modules you're tagging with `[system]`, however, `[system]` appears to mute
other warnings even when applied to the module build (e.g. `-Wunused`).

Simplified repro is <a href="https://reviews.llvm.org/differential/diff/173210/">https://reviews.llvm.org/differential/diff/173210/</a>.</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>