March 19 [Issue 24441] New: templated member functions/nested function does not mangle correctly to C++ on Posix systems | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24441 Issue ID: 24441 Summary: templated member functions/nested function does not mangle correctly to C++ on Posix systems Product: D Version: D2 Hardware: All OS: Mac OS X Status: NEW Severity: enhancement Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: emmankoko519@gmail.com extern(C++) struct A { void foo(T)(T a); } void main() { A a; assert(a.foo!int.mangleof == "_ZN1A3fooIiEEvT_"); } This assertion fails as the function parameters are not mangled as template arguments. D's mangling : ZN1A3fooIiEEvi -- |
Copyright © 1999-2021 by the D Language Foundation