LDC 0.15.1 released!

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Mon Dec 15 21:39:52 PST 2014


On Monday, 15 December 2014 at 18:26:02 UTC, bearophile wrote:
> Kai Nacke:
>
>> Anything special in test.d?
>
>
> I have reduced my test case to this:
>
>
> struct Foo(E1, E2) {
>     Spam tm;
>     static struct Bar {
>         this(in E2, in E1) {}
>     }
>     static struct Spam {
>         Bar[E2][E1] bars;
>     }
> }
> void main() {
>     import std.stdio: writeln;
>     writeln("hello world");
>     enum E3 { A, B }
>     enum E4 { C, D }
>     alias M1 = Foo!(E3, E4);
>     M1.Spam s;
>     s.bars = [E3.A: [E4.C: M1.Bar(E4.D, E3.B)]];
> }
>
>
> Bye,
> bearophile

Thanks for the test case. It does not work if you try to compile 
with ldc2, too.

Regards,
Kai


More information about the digitalmars-d-ldc mailing list