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

            Bug ID: 105845
           Summary: Provide a name mangling facility
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: eyalroz1 at gmx dot com
  Target Milestone: ---

GCC, obviously, produces mangled names for (static-storage-duration) variables
and functions when it produces object files. However, it does not expose this
functionality to programs, i.e. it doesn't let a C++ program obtain the mangled
name of a function or variable.

I'm asking that it does offer that functionality. The specifics would probably
involve some bikeshed, but for example, it could be something like this:

* In the `abi::` namespace like `__cxa_demangle()`.
* One variant of the function would mangle a string
* Another variant of the function would mangle a C++ variable or function (and
the mangling function would be templated).

Reply via email to