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

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Fri Mar 20 07:26:26 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>;
----------------
nico wrote:

Also, ms abi compat warnings are usually in a subgroup of -Wmicrosoft.

I agree that this should default to off as it's not actionable.

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


More information about the cfe-commits mailing list