[Issue 10027] New: demangled name format of local function is wrong

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat May 4 02:15:38 PDT 2013


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 at puremagic.com
        ReportedBy: kekeniro2 at yahoo.co.jp


--- Comment #0 from kekeniro2 at 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: -------


More information about the Digitalmars-d-bugs mailing list