Since v2.50 there is annoying compile error which appears on #1 try to compile; on second try sometimes it goes on sometimes not, on third it goes on with no problem.
It just happens always in the same place after code has been changed (any module) and "compile" (Alt+3) is pressed. That is why I did not try to mess code around and see if anything changes. Since you say it way already reported, I suppose IDE does not always "refresh" or save all changes properly before compile process starts...