Regression in FPC 3.0.2 win64: Internal error 200130121 for functions named Init or Finalize
Original Reporter info from Mantis: sekelsenmat
-
Reporter name: Felipe Monteiro de Carvalho
Original Reporter info from Mantis: sekelsenmat
- Reporter name: Felipe Monteiro de Carvalho
Description:
Hello,
The same source code previously compiled fine in FPC 2.6.4 win64 and in FPC 3.0.2 Win32, but in Win64 it has this internal error 200130121
I was able to figure out that if you rename the function from "Init" to "Init2" and "Finalize" to "Finalize2", the error goes away, but I decided to report it anyway, because:
1> If functions named "Init" are disallowed, an error message "Init is not allowed" should be given, the error showed in a big project so I had to work hard to figure out by trial and error what triggered it
2> Other large projects also exibit the error, see for example how Double Commander worked around this exact same bug in their code by doing something nasty:
https://github.com/ypid-bot/doublecmd/blob/master/src/fFileOpDlg.pas
// Workaround: Internal error 200130121
{$IF (FPC_FULLVERSION < 030000) or (not DEFINED(WIN64))}
finalization
Finalize;
{$ENDIF}
end.
Mantis conversion info:
- Mantis ID: 31795
- Version: 3.0.2
- Fixed in version: 3.1.1
- Fixed in revision: 36194 (#c90fbe1b)
- Monitored by: » Vincent (Vincent Snijders)