[PATCH] MS ABI: Always emit dllexported in-class initialized static data members (PR20140)

David Majnemer david.majnemer at gmail.com
Thu Jul 17 10:08:48 PDT 2014


================
Comment at: lib/AST/ASTContext.cpp:4787
@@ +4786,3 @@
+         VD->getType()->isIntegralOrEnumerationType() &&
+         getTargetInfo().getCXXABI().isMicrosoft() &&
+         !VD->getFirstDecl()->isOutOfLine() &&
----------------
I believe this should be controlled by `-fms-compatibility` not that ABI. MSDN says that compiling with `/Za` would disable this behavior: http://msdn.microsoft.com/en-us/library/34h23df8.aspx

http://reviews.llvm.org/D4563






More information about the cfe-commits mailing list