Bug 10027 – demangled name format of local function is wrong
Status
RESOLVED
Resolution
FIXED
Severity
minor
Priority
P2
Component
druntime
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-05-04T02:15:00Z
Last change time
2013-09-21T20:12:22Z
Assigned to
nobody
Creator
kekeniro2
Comments
Comment #0 by kekeniro2 — 2013-05-04T02:15:35Z
# SOURCE:
import core.demangle;
void main() {
int local() {
pragma(msg, __PRETTY_FUNCTION__); // OUTPUT-1: DMD2.063beta or later only
return 0;
}
pragma(msg, demangle(local.mangleof)); // OUTPUT-2
}
# COMPILER'S OUTPUT:
int example.main.local()
void example.main().int local()
The former output is appropriate.