a simple grep reveals this:Both seem related, but I wonder why there are two! spots with the same internal error. That does not seem correct. (although they are close and cover much the same issue)
grep -nHIirF -- 200411171 (in directory: /home/asta/fpc331/compiler) ./symdef.pas:6999: internalerror(200411171); ./symdef.pas:7006: internalerror(200411171); Search completed with 2 matches.
Can you detect which of the two is the one you encountered? (I suppose you compile with debug info!)
I played a little bit with FPC, to create own system.pas file.
It seems it will going all well, but I get internal error 200411171.
In the attachment, there are the testfiles.
note that i replaced (library) with (program) in top of rtl.lpr file