[clang] [Clang] Ensure child classes export inherited constructors from base classes (PR #182706)

Hans Wennborg via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 30 01:06:09 PDT 2026


================
@@ -3935,6 +3935,11 @@ def warn_dllexport_on_decl_ignored : Warning<
   InGroup<IgnoredAttributes>;
 def note_dllexport_on_decl : Note<
   "'dllexport' attribute on the declaration is ignored">;
+def warn_dllexport_inherited_ctor_unsupported : Warning<
+  "exporting inherited constructor is not yet supported; "
+  "'dllexport' ignored on inherited constructor with "
+  "%select{variadic arguments|callee-cleanup parameters}0">,
+  InGroup<IgnoredAttributes>;
----------------
zmodem wrote:

Oh, are we allowed to call move constructors and such in these thunks? I thought they'd have to be completely transparent like other this-adjusting thunks.

It would be nice to get this fixed, and if you you pointers for where we might do something similar, I'd be interested to give it a try.

https://github.com/llvm/llvm-project/pull/182706


More information about the cfe-commits mailing list