incompatibility with Delphi with procedure variable comparison
Original Reporter info from Mantis: barlone @barloneD
-
Reporter name:
Original Reporter info from Mantis: barlone @barloneD
- Reporter name:
Description:
fpc breaks compilation of following code
{$mode delphi}
var
UtilWindowClass: TWndClass;
begin
UtilWindowClass.lpfnWndProc := @DefWindowProc;
if (UtilWindowClass.lpfnWndProc <> @DefWindowProc) then ;
^here
with error: Wrong number of parameters specified for call to "&LtPos;Procedure Variable>"
I attach test project. Delphi (7) normally compile it.
Mantis conversion info:
- Mantis ID: 20984
- Build: svn r19895
- Version: 2.7.1