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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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@PEAX@@IEAAAEAU0@AEBU0@@Z)
referenced in function "public: struct KUserId & __cdecl
KUserId::operator=(struct KUserId const &)" (??4KUserId@@QEAAAEAU0@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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs