Free Pascal => FV/Textmode IDE => Topic started by: Nitorami on February 03, 2016, 07:52:45 pm
Title: Signal 291 compiler crash
Post by: Nitorami on February 03, 2016, 07:52:45 pm
I am having a serious issue with the compiler FPC 3.0.0 which generates a signal 291 when I merely change the name of a variable in an otherwise rather old and stable code. By setting compiler verbosity to "all" I managed to locate the offending code line on which the compiler throws its last message "Error: Expression type must be class or record type, got (erroneous type)" before it dies. The correct reaction should be "Identifier not found".
Not a regression, it's the same with FPC 2.6.4.
Unfortunately I did not manage to reproduce the fault with an extract of the code for inclusion in a bug report. It seems that the entire program of at least a substantial part of it is required to cause the crash. It is not a big program, maybe 1000 lines in total, but I doubt whether throwing the entire code at the dev team will be useful.
Any advice how to proceed ?
Title: Re: Signal 291 compiler crash
Post by: Nitorami on February 03, 2016, 10:23:26 pm
Could isolate it at last, it is related to optimisation loopunroll. Not sure whether loopunroll is fully supported yet, anyway, this tiny piece of code crashes the compiler. I will issue a bug report.