www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 15143] New: core.demangle: Superfluous * when demangling


          Issue ID: 15143
           Summary: core.demangle: Superfluous * when demangling function
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: druntime
          Assignee: nobody puremagic.com
          Reporter: thecybershadow 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.

Oct 03 2015