[PATCH v6 9/8] libstdc++: Uglify __mapping_alike template parameter and fix test and typo in comment.
Jonathan Wakely
jwakely@redhat.com
Wed Jun 11 17:34:50 GMT 2025
On Fri, 6 Jun 2025 at 10:34, Luc Grosheintz <luc.grosheintz@gmail.com> wrote:
>
>
>
> On 6/5/25 17:18, Tomasz Kamiński wrote:
> > When the static assert was generated from instantiations of default member
> > initializer of class B, the error was not generated for B<1, std::layout_left,
> > std::layout_left> case, only when -D_GLIBCXX_DEBUG was set. Changing B calls to
> > functions fixes that.
>
> Thank you for catching and fixing these! I'll include runs with and
> without -D_GLIBCXX_DEBUG to the testing routine.
>
> Can one automatically detect non-uglified names? Maybe even just listing
> them all would help.
I tried to write a GCC plugin to do it once, but there was no plugin
pass that sees the code as it's parsed, plugins can only interact with
the optimizations passes doing codegen. That means it would only see
the names in templates and inline functions if they're instantiated /
odr-used.
That was quite a few years ago, so it's possible there are more passes
made visible to plugins now, so maybe it would work.
More information about the Libstdc++
mailing list