https://llvm.org/bugs/show_bug.cgi?id=23308
Bug ID: 23308
Summary: clang-cl errors about internal linkage on method in
dllexported class that takes parameter with internal
linkage
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
For example:
$ cat | bin/clang-cl /c /Tp -
namespace { struct T { }; }
struct __declspec(dllexport) S {
void foo(T &t);
};
void S::foo(T &t) { };
<stdin>(7,9) : error: 'S::foo' must have external linkage when declared
'dllexport'
void S::foo(T &t) { };
^
1 error generated.
Since T is in an anonymous namespace, S::foo gets internal linkage, and Clang
errors when trying to dllexport it.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs