Bug 23493 – __xtoHash is not exported

Status
NEW
Severity
normal
Priority
P3
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2022-11-18T12:55:15Z
Last change time
2024-12-13T19:25:42Z
Assigned to
No Owner
Creator
Richard (Rikki) Andrew Cattermole
Moved to GitHub: dmd#20185 →

Comments

Comment #0 by alphaglosined — 2022-11-18T12:55:15Z
When a toHash is generated by the compiler it is not exported on Windows. This was discovered due to my own toHash not being const.
Comment #1 by alphaglosined — 2022-11-18T13:06:10Z
During testing I was actually using LDC when I hit this, so it may not in fact be a dmd bug. But after looking at dmd.clone, I'm not seeing anything obvious stating that these generated functions are indeed getting added to the export table. So I'm going to leave it open, because this very likely does need to be done.
Comment #2 by robert.schadek — 2024-12-13T19:25:42Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/20185 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB