[Bug libstdc++/105845] Provide a name mangling facility usable within C++ code
de34 at live dot cn
gcc-bugzilla@gcc.gnu.org
Mon Jun 6 08:28:11 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105845
Jiang An <de34 at live dot cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |de34 at live dot cn
--- Comment #1 from Jiang An <de34 at live dot cn> ---
I don't think this is a bug of libstdc++.
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.
See also:
https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html
https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html
More information about the Gcc-bugs
mailing list