================
@@ -6588,6 +6594,19 @@ void Sema::checkClassLevelDLLAttribute(CXXRecordDecl
*Class) {
// Force declaration of implicit members so they can inherit the attribute.
ForceDeclarationOfImplicitMembers(Class);
+ // Inherited constructors are created lazily; force their creation now so the
+ // loop below can propagate the DLL attribute to them.
+ if (ClassExported) {
+ SmallVector<ConstructorUsingShadowDecl *, 4> Shadows;
+ for (auto *D : Class->decls())
----------------
ojhunt wrote:
use the type name here instead of `auto` because the actual type name is
otherwise not visible.
https://github.com/llvm/llvm-project/pull/182706
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits