We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beef0d9 commit d6beb7dCopy full SHA for d6beb7d
llvm/include/llvm/Support/Registry.h
@@ -53,7 +53,13 @@ namespace llvm {
53
Registry() = delete;
54
55
friend class node;
56
- static node *Head, *Tail;
+ // These must be must two separate declarations to workaround a 20 year
57
+ // old MSVC bug with dllexport and multiple static fields in the same
58
+ // declaration causing error C2487 "member of dll interface class may not
59
+ // be declared with dll interface".
60
+ // https://developercommunity.visualstudio.com/t/c2487-in-dllexport-class-with-static-members/69878
61
+ static node *Head;
62
+ static node *Tail;
63
64
public:
65
/// Node in linked list of entries.
0 commit comments