[clang] [Clang] Ensure child classes export inherited constructors from base classes (PR #182706)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 20 14:49:48 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>;
----------------
efriedma-quic wrote:
If you're confident your libraries are never going to be used by MSVC, fine, I guess, but I'm not sure what you mean by "not actionable".
Separating the warning into a separate group is a good idea, sure; I wasn't really paying attention to that part.
https://github.com/llvm/llvm-project/pull/182706
More information about the cfe-commits
mailing list