www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24399] New: Link failure on MacOS with address=0x0 points to

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 puremagic.com
          Reporter: ibuclaw 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.

--
Feb 20