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