Bug 8578 – std.demangle.demangle does not parse symbols that are type names
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2012-08-21T18:29:00Z
Last change time
2015-02-18T03:37:41Z
Assigned to
nobody
Creator
sturtivant
Comments
Comment #0 by sturtivant — 2012-08-21T18:29:06Z
Use of demangle from std.demangle or core.demangle on the mangled
names in an object or library generated by dmd works only on the
names of functions, and not on the names of types embedded in
such objects and libraries.
e.g. the following names are not demangled, being type names
(ending in Z).
_D13libd_demangle12__ModuleInfoZ
_D15TypeInfo_Struct6__vtblZ
_D3std5stdio12__ModuleInfoZ
_D3std6traits15__T8DemangleTkZ8Demangle6__initZ
_D47TypeInfo_S3std6traits15__T8DemangleTkZ8Demangle6__initZ
Opinion: D should do the right thing and have the facility to
demangle all of its own mangled names; no-one else will.
Comment #1 by github-bugzilla — 2014-10-11T19:06:05Z