calls wrong overloaded function if difference is only in type of pointer to specialized class
Original Reporter info from Mantis: deep42thought
-
Reporter name: Erich Eckner
Original Reporter info from Mantis: deep42thought
- Reporter name: Erich Eckner
Description:
The wrong overloaded function is being called, when they differ only in type of pointer to a specialized class. It doesn't help to explicitly cast to the correct pointer type, either.
This leads to the given pointer being treated as the wrong type, which leads to all kind of bad behavior (this is the actual issue, I was trying to bisect, first).
Steps to reproduce:
take the attached program and do:
fpc -MObjFPC mwe.pas
./mwe
It claims to run the copy_from(a: pArraySingle) method, although, it should run copy_from(a: pArrayDouble).
Mantis conversion info:
- Mantis ID: 38679
- OS: arch linux
- Build: r47406
- Platform: linux
- Version: 3.3.1