[llvm-bugs] [Bug 39345] Conflicting definition/declaration errors from unused submodules
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Oct 19 09:40:57 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=39345
David Blaikie <dblaikie at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
CC| |dblaikie at gmail.com,
| |richard-llvm at metafoo.co.uk
--- Comment #1 from David Blaikie <dblaikie at gmail.com> ---
I believe that's intended behavior - the non-visible modules are considered to
be part of the program, even if they aren't used, and so subject to the ODR. I
believe the right approach if you need to support code like this is to ensure a
module with conflicting definitions is never imported - so perhaps making
smaller/narrower modules would be necessary.
--
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/20181019/daa5e1a5/attachment.html>
More information about the llvm-bugs
mailing list