[Issue 11192] New: std.demangle doesn't demangle alias template arguments
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Oct 7 13:24:55 PDT 2013
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 at puremagic.com
ReportedBy: peter.alexander.au at gmail.com
--- Comment #0 from Peter Alexander <peter.alexander.au at gmail.com> 2013-10-07 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: -------
More information about the Digitalmars-d-bugs
mailing list