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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected],
                    [email protected]

```
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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to