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: unassignedclangb...@nondot.org
Reporter: andrew...@gmail.com
CC: dgre...@apple.com, llvm-bugs@lists.llvm.org,
richard-l...@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs