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