www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10027] New: demangled name format of local function is wrong

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10027

           Summary: demangled name format of local function is wrong
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: druntime
        AssignedTo: nobody puremagic.com
        ReportedBy: kekeniro2 yahoo.co.jp


--- Comment #0 from kekeniro2 yahoo.co.jp 2013-05-04 02:15:35 PDT ---
# 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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 04 2013
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=10027


kekeniro2 yahoo.co.jp changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


--- Comment #1 from kekeniro2 yahoo.co.jp 2013-09-21 20:12:22 PDT ---
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 -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Sep 21 2013