[DGD] segmentation fault during compile_object
Felix A. Croes
felix at dworkin.nl
Mon Aug 12 23:06:33 CEST 2013
bart at wotf.org wrote:
> On another note, I am experiencing another oddity with the function pointers
> extension, this might be due to misunderstanding on my side, but it looks odd
> to me.
>
> Code like this does not compile (invalid argument 1 to kfun * (needs function):
>[...]
> Well, maybe I should go back in hiding... I really wasn't planning on bug
> hunting, but here is another one (sorry no patch this time) :-)
>
> On a default compile of 1.5 (latest updates from git), trying to compile an
> object that contains a line like:
>
> f = &create();
>
> causes the compiler to emit a syntax error (correct as CLOSURES is not
> enabled) and then crashes the driver.
That's what happens when you are basically the first user of this piece
of code in 2 years :-) The necessity of function pointers in LPC has been
somewhat overstated.
Many bugs should now be fixed.
Regards,
Felix Croes
More information about the DGD
mailing list