[Bug c++/105845] Provide a name mangling facility usable within C++ code

eyalroz1 at gmx dot com gcc-bugzilla@gcc.gnu.org
Mon Jun 6 17:54:19 GMT 2022


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105845

--- Comment #2 from Eyal Rozenberg <eyalroz1 at gmx dot com> ---
(In reply to Jiang An from comment #1)
> I don't think this is a bug of libstdc++.

Well, it's not a bug, it's a feature request. But - I certainly won't bikeshed
about the choice of component.

> Perhaps you may use extern "C" and __attribute__((alias("specified_name"))
> (can be also spelled as [[gnu::alias("specified_name")]] since C++11 mode)
> as workaround.

I'm not trying to force a mangled name, I want to get the mangled name in
pre-existing code.


More information about the Gcc-bugs mailing list