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.
Comment #1 by kekeniro2 — 2013-09-21T20:12:22Z
Fixed by Rainer. Copied the commit reports from Issue 10277. (this is 10027 :) ) >Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/9837043cfc75a37d4a79941cc5b401e19213088d Merge pull request #1592 from rainers/demangle_local fix issues 10277 & 6045:improve demangling for function local symbols >Commit pushed to master at https://github.com/D-Programming-Language/druntime https://github.com/D-Programming-Language/druntime/commit/64ae912e8e89840a0ed14fc149c10fe6bfb8e169 Merge pull request #611 from rainers/demangle_local fix issues 10277 & 6045:improve demangling for function local symbols