Le 29 févr. 2012 07:20, "Nick Sabalausky" <a@a.a> a écrit :
>
> "Nick Sabalausky" <a@a.a> wrote in message
> news:jikcit$201o$1@digitalmars.com...
> >
> > Hmm, maybe I need to think about what it would take to make Goldie able to
> > parse at compile-time...
> >
>
> Just gave it a quick shot. It was looking like it might not be too bad, but
> then I hit:
>
> Assertion failure: 'ctfeStack.stackPointer() == 0' on line 4823 in file
> 'interpret.c'
>
> Bleh.
>
> (This was with DMD 2.058)
Yeah, I had the very same yesterday :(
Also, another one on line 94 in interpret.c 'v->ctfeSomethin' failing.
Too bad.
In my case, I found a workaround: I was doing
array[] ~= SomeStruct(args);
which asserts at CTFE.
But:
auto s = SomeStructs(args);
array[] ~= s;
works.