On Thu, Mar 19, 2026 at 04:08:23PM +0100, Tomasz Kaminski wrote:
> > > The following patch adds another g++.dg/plugin/ testsuite plugin,
> > > this time to verify whether some std.cc exports aren't mistakenly
> > > omitted. The patch is on top of the uglification plugin patch,
> > > but only dependent on it because of the plugin_test_list hunk,
> > > it could be applied independently with a little effort.
> > >
> > > The patch is a reworked version of the
> > > https://gcc.gnu.org/pipermail/libstdc++/2025-August/thread.html#62859
> > > proof of concept. That version just dumped out everything it saw
> > > in the std namespace and its child namespaces (excluding non-inline
> > > subnamespaces with identifiers starting with underscore) and then I've
> > > used sed&grep to form a list of omissions.
> > >
> > > This patch keeps the previous walk of std namespace and namespaces
> > children
> > > of it, but it only reports (in this version using error_at instead of
> > inform
> > > previously) what it finds if it isn't exported from the module and is not
> > > deprecated (deprecated attribute is used usually for zombie.names in the
> > > standard).
> >
> One option is to put the in std.compat module only. It will fit the idea
> for this module,
> to provide more compatible replacement for modules.
Note, the plugin will not really work on std.compat, unlike std that has
export import std;
and that means the DECL_NAMESPACE_BINDINGS will be full of BINDING_VECTOR
elts and I have no idea what they mean and how to handle those.
Jakub