www.digitalmars.com         C & C++   DMDScript  

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

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: 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