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

            Bug ID: 41018
           Summary: dllimport conflicts with
                    exclude_from_explicit_instantiation.
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

When both dllimport and exclude_from_explicit_instantiation are passed, Clang
still expects the function to have a externally available definition. But this
is not the case.

For example: https://godbolt.org/z/gKOHCk

This leads to linker errors because of undefined symbols.

I think one approach would be to make Clang not inherit `dllimport` attributes
on functions declared with exclude_from_explicit_instantiation. When dllimport
is applied directly, we could emit an error for incompatible attributes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to