================
@@ -6643,8 +6695,13 @@ void Sema::checkClassLevelDLLAttribute(CXXRecordDecl 
*Class) {
 
       // Do not export/import inline function when -fno-dllexport-inlines is
       // passed. But add attribute for later local static var check.
+      // Inherited constructors are marked inline but must still be exported
+      // to match MSVC behavior, so exclude them from this override.
----------------
zmodem wrote:

-fno-dllexport-inlines is already a break with MSVC compatibility. I don't 
think inherited constructors are different from other inline functions in this 
respect, and should still be excluded. I've sent 
https://github.com/llvm/llvm-project/pull/187684 for this.

https://github.com/llvm/llvm-project/pull/182706
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to