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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jun 12 06:34:05 UTC 2018


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

Mathias LANG <pro.mathias.lang at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pro.mathias.lang at gmail.com
           Hardware|x86_64                      |All
            Summary|Wrong C++ mangling for      |Missing substitution while
                   |template                    |mangling C++ template
                   |                            |parameter for functions

--- Comment #3 from Mathias LANG <pro.mathias.lang at gmail.com> ---
Edited the title to make it a bit clearer. I was hit by this today. DMD does
not respect this part of the spec:
```
When function and member function template instantiations reference the
template parameters in their parameter or result types, the template parameter
number is encoded, with the sequence T_, T0_, ... 
```
Source:
https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangle.template-param

--


More information about the Digitalmars-d-bugs mailing list