[llvm-bugs] [Bug 43471] New: invalid computation of formal linkage with `__declspec` for dllstorage
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Sep 26 15:49:14 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=43471
Bug ID: 43471
Summary: invalid computation of formal linkage with
`__declspec` for dllstorage
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: compnerd at compnerd.org
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
```
namespace {
struct tag { };
}
template <typename T>
struct __declspec(dllexport) S {
static T value;
};
template <typename T>
T S<T>::value = T();
S<tag> s;
```
`s` is given external linkage despite `tag` having internal linkage.
--
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/20190926/1fc3f7d0/attachment.html>
More information about the llvm-bugs
mailing list