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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 2 21:42:41 UTC 2018


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

--- Comment #6 from github-bugzilla at puremagic.com ---
Commit pushed to master at https://github.com/dlang/dmd

https://github.com/dlang/dmd/commit/beb2a889124e53a6a6cc5218ffc596177b157086
Correct definition of foo15372 in cppa.d

In the C++ file it is defined as `template<typename T> int foo15372(int)`,
but in the D file the argument was the template type.
As template arguments are substituted in mangling,
this was not correct and only compiled thanks to bug 16479

--


More information about the Digitalmars-d-bugs mailing list