[fpc-devel] Fatal: Internal error 200512115

Sven Barth pascaldragon at googlemail.com
Thu Oct 27 16:36:33 CEST 2011


Am 27.10.2011 16:19, schrieb Alexander Shishkin:
> 27.10.2011 17:40, Jonas Maebe пишет:
>>
>> 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).
>>
>>
> I found problematic place. BTW the compiler internal error line&col
> position was right, but unit name was wrong.

It would be nice if you'd mention line, column, incorrect unitname and 
correct unitname. Then I might be able to help you ;)

Regards,
Sven




More information about the fpc-devel mailing list