Forward declaration not solved if we redefine InitGraph in the interface of a Unit
Original Reporter info from Mantis: s5t1e3v4e3m11@hotmail.com
-
Reporter name: Steve Miller
Original Reporter info from Mantis: s5t1e3v4e3m11@hotmail.com
- Reporter name: Steve Miller
Description:
Old source code now with ver 2.2.4 gives "Forward declaration not solved" error when compiling a unit that compiled fine under 2.2.1
(see attached sample)
The unit redefines a procedure of unit graph.
Steps to reproduce:
The attached (simplified) unit does not compile.
Additional information:
I found a work around: move the uses clause into the interface section. (But I understand that there are some drawbacks to this.)
I wonder how much this is related to bug 11435/11436 and 10540.
Strange this is that only redefining procedures/functions of the unit Graph seem having that problem; I tested a few from DOS and SYSUTILS and for them I could keep the uses clause in the implementation section.
Mantis conversion info:
- Mantis ID: 14104
- OS: XP
- Platform: Windows
- Version: 2.2.4
- Fixed in version: 2.4.0
- Fixed in revision: 13373 (#79f139bf)
- Monitored by: » s5t1e3v4e3m11@hotmail.com (Steve Miller)