Bug 11797 – Should match abi for c++ mangling of size_t

Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2013-12-21T22:24:00Z
Last change time
2014-09-08T10:49:32Z
Keywords
pull
Assigned to
nobody
Creator
yebblies

Comments

Comment #0 by yebblies — 2013-12-21T22:24:59Z
The System V ABI defines size_t: "The type size_t is defined as unsigned long" To match this, D's "ulong" type must be mangled as C++'s "unsigned long" type on 64-bit linux. Same for "long"/"signed long".
Comment #1 by yebblies — 2013-12-21T22:31:16Z
Comment #2 by yebblies — 2014-09-08T10:49:32Z
This was fixed at some point, but not by the linked pull request.