[Issue 16479] Missing substitution while mangling C++ template parameter for functions

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jun 8 13:48:33 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=16479

Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |sahmi.soulaimane at gmail.com
         Resolution|FIXED                       |---

--- Comment #10 from Suleyman Sahmi (سليمان السهمي) <sahmi.soulaimane at gmail.com> ---
The substitution still fails with qualified types.

Example:

https://run.dlang.io/is/5BEekf
---
extern(C++, N)
{
    struct S(T) {}
}

extern(C++):

S!T func(T)();
pragma(msg, func!int.mangleof);

N.S!T funq(T)();
pragma(msg, funq!int.mangleof);
---

output:

_Z4funcIiEN1N1SIT_EEv
_Z4funqIiEN1N1SIiEEv

S!T works, but N.S!T doesn't.

--


More information about the Digitalmars-d-bugs mailing list