Bug 19043 – Incorrect mangling for extern(C++) const template parameter on windows

Status
RESOLVED
Resolution
FIXED
Severity
blocker
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2018-06-30T11:01:25Z
Last change time
2018-07-03T02:26:40Z
Assigned to
No Owner
Creator
Nicholas Wilson

Comments

Comment #0 by iamthewilsonator — 2018-06-30T11:01:25Z
struct __dslice(T) {} extern(C++) void test18716c(__dslice!(const(char))); is mangled as ?test18716b@@YAXU?$__dslice@D@@@Z instead of ?test18716c@@YAXU?$__dslice@$$CBD@@@Z which is the mangling for extern(C++) void test18716c(__dslice!(char)); This is a blocker for the fix for issue 18716
Comment #1 by github-bugzilla — 2018-07-03T02:26:39Z
Commits pushed to master at https://github.com/dlang/dmd https://github.com/dlang/dmd/commit/09921ce45c1e4f12e5564b47579b2f052f86f76a Fix issue 19043 https://github.com/dlang/dmd/commit/3349c52b59fd9201fc49a6f2440311974c5dabc8 Merge pull request #8432 from thewilsonator/issue19043 Fix issue 19043 - Incorrect mangling for extern(C++) const template parameter on windows merged-on-behalf-of: Mathias LANG <[email protected]>