Issue 15143 - core.demangle: Superfluous * when demangling function pointers
Summary: core.demangle: Superfluous * when demangling function pointers
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: druntime (show other issues)
Version: D2
Hardware: All All
: P3 normal
Assignee: No Owner
URL:
Keywords: mangling
Depends on:
Blocks:
 
Reported: 2015-10-03 14:03 UTC by Vladimir Panteleev
Modified: 2024-12-07 13:35 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Vladimir Panteleev 2015-10-03 14:03:42 UTC
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.
Comment 1 dlangBugzillaToGithub 2024-12-07 13:35:48 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/17312

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB