Lexer and parser generators using CTFE

Nick Sabalausky a at a.a
Wed Feb 29 09:05:03 PST 2012


"Philippe Sigaud" <philippe.sigaud at gmail.com> wrote in message 
news:mailman.229.1330508922.24984.digitalmars-d at puremagic.com...
Le 29 févr. 2012 07:20, "Nick Sabalausky" <a at a.a> a écrit :
>
>>
>> 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.
>

Ooh, cool! I know exactly where I'm doing that!




More information about the Digitalmars-d mailing list