[fpc-devel]h2pas bug

Michael.VanCanneyt at Wisa.be Michael.VanCanneyt at Wisa.be
Thu Feb 13 23:27:11 CET 2003


On Thu, 13 Feb 2003, Jeff Pohlmeyer wrote:

>
> This is legal in a C header:
>   struct foo;
>
>  - But it causes a seg fault in h2pas when it tries
>  to read the fields from the undefined structure.
>
> There may be a better place to test for this,
> but the patch below seems to work:

I applied it in the h2pas.y yacc sources. The h2pas.pas is generated from
that. Tested and it works.

Thanks !

Michael.




More information about the fpc-devel mailing list