www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 11192] New: std.demangle doesn't demangle alias template arguments

http://d.puremagic.com/issues/show_bug.cgi?id=11192

           Summary: std.demangle doesn't demangle alias template arguments
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody puremagic.com
        ReportedBy: peter.alexander.au gmail.com



13:24:54 PDT ---
import std.demangle, std.stdio;
void foo(alias x)() {}
void main()
{
    int bar;
    foo!bar.mangleof.demangle.writeln();
}

Gives:

void foo.main().pure nothrow  safe void foo!(_D3foo4mainFZv3bari).foo()

Notice that _D3foo4mainFZv3bari remains mangled.

I would expect something along the lines of:

void foo.main().pure nothrow  safe void foo!(void foo.main().int bar).foo()

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Oct 07 2013