https://issues.dlang.org/show_bug.cgi?id=15143

          Issue ID: 15143
           Summary: core.demangle: Superfluous * when demangling function
                    pointers
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nob...@puremagic.com
          Reporter: thecybersha...@gmail.com

void function() fun;
import std.demangle;
pragma(msg, demangle(fun.mangleof));

This prints:
void function()* test.fun

The * is superfluous (as "function" already indicates a function pointer), and
thus indicates a pointer to a function pointer.

--

Reply via email to