February 12, 2012 Re: dmd thrashes fedora | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | Timon Gehr wrote: > The error message says [...] > recursive expansion I did not read that in the posts and on dmd 2.057/win32 only an out of memory was thrown. > I'll attempt to analyse Good luck. -manfred |
February 12, 2012 Re: dmd thrashes fedora | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ellery Newcomer | On 02/10/2012 08:38 PM, Ellery Newcomer wrote:
>
> when I run
>
> dmd -gc -oftopo topo.d multi_index.d replace.d
>
> on the contents of
>
> http://personal.utulsa.edu/~ellery-newcomer/bad.zip
>
> in fedora 16 x86_64 with dmd 2.057 64 bit
>
> dmd starts thrashing like there is no tomorrow and generally locks up my
> entire system. Can anyone confirm this behavior?
It is a bug in your code:
- ForEachIndex!(N+1, L).result;
+ ForEachIndex!(N+1, L[1..$]).result;
The diagnostic DMD spits out is quite bad.
|
February 12, 2012 Re: dmd thrashes fedora | ||||
---|---|---|---|---|
| ||||
Posted in reply to Timon Gehr | On 02/12/2012 08:34 AM, Timon Gehr wrote:
>
> It is a bug in your code:
>
> - ForEachIndex!(N+1, L).result;
> + ForEachIndex!(N+1, L[1..$]).result;
>
> The diagnostic DMD spits out is quite bad.
Wow.
In my defense, the original code is right; apparently dustmite did this to the reduced case.
I know I had that stuff working last summer.
Thanks for the analysis.
|
Copyright © 1999-2021 by the D Language Foundation