Syntax error on correct function address assignment
Original Reporter info from Mantis: Barvinok
-
Reporter name: Gennadiy
Original Reporter info from Mantis: Barvinok
- Reporter name: Gennadiy
Description:
The syntax error
gpabugtest.lpr(16,51) Fatal: Syntax error, ";" expected but "(" found
appears when I try to assign a function variable prototyped as GetProcAddress() to the address of GetProcAddress() obtained by a call of GetProcAddress() itself.
That seems weird but I believe it to be syntactically correct. See demo attached.
Steps to reproduce:
compile the code attached with the following options
-MDelphi -OpPENTIUM4 -Twin32 -Pi386 -g -gl -vewnhi -l -Filib\i386-win32 -Fu. -FUlib\i386-win32\
Mantis conversion info:
- Mantis ID: 21073
- OS: Windows
- OS Build: any
- Build: svn r19982
- Platform: win32
- Version: 2.7.1
- Fixed in version: 2.6.1
- Fixed in revision: 20427 (#75aac428)