Bug 24399 – Link failure on MacOS with address=0x0 points to section(2) with no content in config_a68_4c3.o

Status
RESOLVED
Resolution
FIXED
Severity
critical
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2024-02-20T13:30:12Z
Last change time
2024-03-01T23:57:00Z
Keywords
pull
Assigned to
No Owner
Creator
Iain Buclaw
See also
https://issues.dlang.org/show_bug.cgi?id=24137

Comments

Comment #0 by ibuclaw — 2024-02-20T13:30:12Z
Happens with dynamic arrays with an empty initalization. --- template rt_options() { string[] rt_options = []; } alias _ = rt_options!(); --- Remove `= []` and the error goes away.
Comment #1 by dlang-bot — 2024-02-22T08:59:43Z
@ibuclaw created dlang/dmd pull request #16222 "Fix Bugzilla 24399 - Link failure on MacOS with address=0x0 points to section(2) with no content" fixing this issue: - Fix Bugzilla 24399 - Link failure on MacOS with address=0x0 points to section(2) with no content https://github.com/dlang/dmd/pull/16222
Comment #2 by dlang-bot — 2024-02-24T00:12:44Z
dlang/dmd pull request #16222 "Fix Bugzilla 24399 - Link failure on MacOS with address=0x0 points to section(2) with no content" was merged into stable: - 61d53f06fe9c6cd2b7cb6cda426a38d0c5d5dbc6 by Iain Buclaw: Fix Bugzilla 24399 - Link failure on MacOS with address=0x0 points to section(2) with no content https://github.com/dlang/dmd/pull/16222
Comment #3 by dlang-bot — 2024-03-01T23:57:00Z
dlang/dmd pull request #16276 "merge stable" was merged into master: - 985f64ba03ad2b5e210e8e555c6e59253188faaa by Iain Buclaw: Fix Bugzilla 24399 - Link failure on MacOS with address=0x0 points to section(2) with no content https://github.com/dlang/dmd/pull/16276