http://d.puremagic.com/issues/show_bug.cgi?id=10108



--- Comment #13 from Igor Stepanov <wazar.leoll...@yahoo.com> 2013-05-18 
00:46:39 PDT ---
> 
> > int[] x = [1,2,3]; // should not be compiled
> 
> It would be trivial to fix. As the initializer for static data must be a
> compile time constant we'd just need to store this constant in TLS instead of
> the data segment.
> The problem is that ELF has no TLS relocations for data, i.e. we'd need a
> dynamic initalizer that sets arr.ptr to the TLS data.
I dont know anything about relocation magic. But, as I understand you, we
cannot to use it;

>The simple fix is to only allow value types to have TLS initalizers and require
>static this() for everything else.
Yes. This is all we need I think.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to