LDC 0.11.0 Beta 3

David Nadlinger code at klickverbot.at
Fri Jun 7 06:38:51 PDT 2013


On Friday, 7 June 2013 at 13:34:21 UTC, bearophile wrote:
> I am compiling some of my code with ldc2 on Windows, and I have 
> found this, reduced:
>
>
> import core.stdc.stdio: printf;
> struct Foo {
>     double[2] a;
> }
> auto foos = [Foo([0.0, 0.0]), Foo([10.0, 20.0])];
> void main() {
>     auto b1 = foos[0];
>     auto b2 = foos[1];
>     double[2] d = 0;
>     d[] = b1.a[] - b2.a[];
>     printf("%0.9f %0.9f\n", d[0], d[1]);
> }

Thanks for the report. Please post this to 
https://github.com/ldc-developers/ldc/issues though.

David


More information about the digitalmars-d-ldc mailing list