Druntime git HEAD broke array ops

Seb seb at wilzba.ch
Tue Apr 9 05:28:29 UTC 2019


On Tuesday, 9 April 2019 at 04:35:33 UTC, H. S. Teoh wrote:
> I wasted all day today trying to track down a sudden test suite 
> breakage in one of my major D projects after upgrading to the 
> latest dmd toolchain, and found that the latest druntime broke 
> array operations:
>
> 	double[] src = [ 0.5 ];
> 	double[] dest;
> 	dest.length = src.length;
> 	dest[] = -src[];
>
> The expected contents of dest is [ -0.5 ], but the actual 
> result is [ 0.0 ].
>
> 	https://issues.dlang.org/show_bug.cgi?id=19796
>
> Git bisect narrowed down the cause to PR #1982 (commit 
> d7b99e91e).
>
>
> T

Thanks a lot for tracking that down. I'm amazed that all the 
testsuites didn't catch this.
This should hopefully fix the problem: 
https://github.com/dlang/druntime/pull/2550



More information about the Digitalmars-d mailing list