[fpc-pascal] Constants in generics tests

Sven Barth pascaldragon at googlemail.com
Fri Feb 15 22:19:28 CET 2019


Am Fr., 15. Feb. 2019, 21:54 hat Ryan Joseph <ryan at thealchemistguild.com>
geschrieben:

>
>
> > On Feb 15, 2019, at 2:11 PM, Ryan Joseph <ryan at thealchemistguild.com>
> wrote:
> >
> > Something with class functions in particular. Very strange it can’t find
> the declaration. So never mind about submitting, I need to fix this now. :)
>
> I just looked over this and indeed I have no idea idea what happened. I
> suspect there’s some code not being called because the param is a constsym
> but I have no idea where that may be. It feels like the specialized class
> name is not matching when constants are in the specialized type.
>
> A question for the compiler team: is there anything you could say about
> how forward def are resolved with class functions that may be different
> from normal functions? I would understand if this happened for all
> functions but it’s strange it only happens with class functions. Anything
> you could say to point me in the right direction so I don’t have to spend
> hours in the debugger. :)
>

It could be that the method body is not generated. Look
for generate_specialization_procs in pgenutil as that is what generates the
bodies at the end of a unit (simplified).

Regards,
Sven

>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20190215/b413dbb6/attachment.html>


More information about the fpc-pascal mailing list