[Issue 15143] New: core.demangle: Superfluous * when demangling function pointers

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Oct 3 07:03:42 PDT 2015


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 at puremagic.com
          Reporter: thecybershadow at 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.

--


More information about the Digitalmars-d-bugs mailing list