[Issue 14579] [SPEC] No specification on modifiers in TypeFunction symbols
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue May 12 05:34:10 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14579
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Code example on how to trigger it:
---
module demangle;
void spawn(F, T...)( F fn, T args )
{
_spawn( false, fn, args );
}
private void _spawn(F, T...)( bool linked, F fn, T args )
{
}
void main()
{
void delegate(int) immutable dg5;
spawn(dg5, 5);
}
---
Mangles as:
_D8demangle20__T6_spawnTDyFiZvTiZ6_spawnFNaNbNiNfbDyFiZviZv
Note the 'DyF'
On some second thought, perhaps this should be added to the TypeDelegate mangle
instead, as TypeModifiers can not really be applied to function types.
TypeDelegate:
D TypeFunction
Change this to:
TypeDelegate:
D TypeModifiers TypeFunction
--
More information about the Digitalmars-d-bugs
mailing list