[llvm-bugs] [Bug 39592] New: A `[system]` module built with `-Wdelete-non-virtual-dtor` can't suppress this warning in importers
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Nov 8 13:36:06 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39592
Bug ID: 39592
Summary: A `[system]` module built with
`-Wdelete-non-virtual-dtor` can't suppress this
warning in importers
Product: clang
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Modules
Assignee: unassignedclangbugs at nondot.org
Reporter: andrewjcg at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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 https://reviews.llvm.org/differential/diff/173210/.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181108/293289bf/attachment.html>
More information about the llvm-bugs
mailing list