[llvm-bugs] [Bug 39863] New: Use of `-fmodules-local-submodule-visibility` causes undefined inline template function error

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Dec 2 20:56:19 PST 2018


https://bugs.llvm.org/show_bug.cgi?id=39863

            Bug ID: 39863
           Summary: Use of `-fmodules-local-submodule-visibility` causes
                    undefined inline template function error
           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

Using `-fmodules-local-submodule-visibility` without an explicit `export`
causes undefined inline function errors for template functions marked as
`inline` (e.g. https://reviews.llvm.org/P8122). Using `export *` of not using
`-fmodules-local-submodule-visibility` for these modules fixes it.

Simplified repro in: https://reviews.llvm.org/differential/diff/176315/.

-- 
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/20181203/6c10908c/attachment.html>


More information about the llvm-bugs mailing list