Bug 24441 – templated member functions/nested function does not mangle correctly to C++ on Posix systems

Status
NEW
Severity
enhancement
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
All
OS
Mac OS X
Creation time
2024-03-19T16:20:32Z
Last change time
2024-12-13T19:33:53Z
Assigned to
No Owner
Creator
Emmanuel Nyarko
Moved to GitHub: dmd#18221 →

Comments

Comment #0 by emmankoko519 — 2024-03-19T16:20:32Z
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
Comment #1 by robert.schadek — 2024-12-13T19:33:53Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18221 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB