Trying to overload and use >< operator results in Internal error 2008022101
Original Reporter info from Mantis: Michalis @michaliskambi
-
Reporter name: Michalis Kamburelis
Original Reporter info from Mantis: Michalis @michaliskambi
- Reporter name: Michalis Kamburelis
Description:
See the two attached testcases. They both try to overload and use >< operator, but compilation with FPC 2.6.0 fails with Internal error 2008022101:
$ fpc operator_test.pas
operator_test.pas(21,13) Fatal: Internal error 2008022101
...
$ fpc operator_test_2.pas
operator_test_2.pas(3,37) Error: Impossible operator overload
operator_test_2.pas(9,13) Fatal: Internal error 2008022101
In related issue (I'll report it next), there's also a question why overloading >< is not possible for some types.
Mantis conversion info:
- Mantis ID: 21505
- Version: 2.6.0
- Fixed in version: 3.0.0