[Issue 24399] New: Link failure on MacOS with address=0x0 points to section(2) with no content in config_a68_4c3.o
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Feb 20 13:30:12 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24399
Issue ID: 24399
Summary: Link failure on MacOS with address=0x0 points to
section(2) with no content in config_a68_4c3.o
Product: D
Version: D2
Hardware: x86_64
OS: Mac OS X
Status: NEW
Severity: critical
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: ibuclaw at gdcproject.org
Happens with dynamic arrays with an empty initalization.
---
template rt_options()
{
string[] rt_options = [];
}
alias _ = rt_options!();
---
Remove `= []` and the error goes away.
--
More information about the Digitalmars-d-bugs
mailing list