Wishlist: More Detailed Abstact Function Error Reporting
Original Reporter info from Mantis: FPCCore
-
Reporter name: FPC core team
Original Reporter info from Mantis: FPCCore
- Reporter name: FPC core team
Description:
The below example causes the following compiler output:
Free Pascal Compiler version 1.0.10 [2003/06/26] for i386
Copyright (c) 1993-2003 by Florian Klaempfl
Target OS: Linux for i386
Compiling abstractfunctiontest.pas
abstractfunctiontest.pas(25,31) Error: Instances of classes or objects with an abstract method are not allowed
abstractfunctiontest.pas(26,4) Fatal: There were 1 errors compiling module, stopping
Now, it's obvious where the error is, but in a more complex situation with an object that has inherited from a parent that has inherited from a parent that has inherited from a parent and so on, it becomes very difficult to track down where the error is. It would be nice for future versions of Free Pascal have more detailed output that would tell the programmer in what class there is an abstract function and perhaps the function name. For example, perhaps the error output could look something like this:
abstractfunctiontest.pas(25,31) Error: Instances of classes or objects with an abstract method are not allowed. Class/Object: AbstractObject. Abstract Method: test.
Additional information:
Reporter: Will
EMail: oohaynotihs at yahoo dot com
Mantis conversion info:
- Mantis ID: 4636
- OS: Linux
- Version: 1.0.10
- Fixed in version: 1.1.0