[llvm-bugs] [Bug 41018] New: dllimport conflicts with exclude_from_explicit_instantiation.
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Mar 8 17:06:21 PST 2019
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: unassignedclangbugs at nondot.org
Reporter: eric at efcs.ca
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190309/cdf0ea7b/attachment-0001.html>
More information about the llvm-bugs
mailing list