Am 15.02.2019 um 23:00 schrieb Ryan Joseph:
On Feb 15, 2019, at 4:19 PM, Sven Barth via fpc-pascal
<fpc-pascal@lists.freepascal.org> wrote:
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).
Really good catch Sven. tstoreddef.is_specialization is not returning true for
generics with const params so the procedure body is not getting created. Not
sure how to resolve it yet but at least I know where it is. Thanks.
Disclaimer: I have not yet looked at your most recent changes, nor do I
fully remember what you had changed previously.
Maybe tstoreddef.genericparas does not contain the constant symbols?
(they should be added in pgenutil.insert_generic_parameter_types)
While you're at it, you should probably also ensure that internal error
2014050904 does not trigger ;)
Regards,
Sven
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal