[fpc-devel] Fatal: Internal error 200512115

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Oct 27 15:40:15 CEST 2011


On 27 Oct 2011, at 15:26, Alexander Shishkin wrote:

> I`ve got this with 2.5.1 & 2.7.1
>
> 1) unable to clean reproduce (real code is https://github.com/alexvins/dwscript/tree/628669df8fd349968e7498ab1da617be6c4f3977)
> 2) error reported in the middle of EMPTY line.

This internal error indicates that a problem occurred while generating  
code for a specialization of a generic. This code generation does not  
happen when the specialization is declared, but only after all the  
code in the unit has been compiled. That's why you get a bogus error  
location.

> 3) no ideas how to to make workaround

Me neither, except for not using generics at all (or disabling your  
specializations one by one to figure out which one triggers the  
problem).


Jonas



More information about the fpc-devel mailing list