[llvm-bugs] [Bug 29137] New: Inconsistency in symbol visibility for explicit template instantiation between cl.exe and clang-cl.exe
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Aug 25 06:44:35 PDT 2016
https://llvm.org/bugs/show_bug.cgi?id=29137
Bug ID: 29137
Summary: Inconsistency in symbol visibility for explicit
template instantiation between cl.exe and clang-cl.exe
Product: clang
Version: 3.9
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: 6yearold at gmail.com
CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
Classification: Unclassified
The code in question is
https://lxr.kde.org/source/frameworks/kcoreaddons/src/lib/util/kuser.h on line
0114
and
https://lxr.kde.org/source/frameworks/kcoreaddons/src/lib/util/kuser_win.cpp on
line 0731
Compiling it with cl.exe works fine, while clang-cl.exe gives linking errors:
[ 22%] Linking CXX shared library ..\..\bin\KF5CoreAddons.dll
Creating library ..\..\lib\KF5CoreAddons.lib and object
..\..\lib\KF5CoreAddons.exp
kshell.cpp.obj : error LNK2019: unresolved external symbol "protected: struct
KUserOrGroupId<void *> & __cdecl KUserOrGroupId<void *>::operator=(struct
KUserOrGroupId<void *> const &)" (??4?$KUserOrGroupId at PEAX@@IEAAAEAU0 at AEBU0@@Z)
referenced in function "public: struct KUserId & __cdecl
KUserId::operator=(struct KUserId const &)" (??4KUserId@@QEAAAEAU0 at AEBU0@@Z)
..\..\bin\KF5CoreAddons.dll : fatal error LNK1120: 1 unresolved externals
I could try to come up with a lesser testcase if needed.
--
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/20160825/a87bdc78/attachment.html>
More information about the llvm-bugs
mailing list