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




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
}


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



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 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 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