[fpc-pascal]fpc 1.0 and 1.1 incompatibility

Peter Vreman peter at freepascal.org
Thu Oct 30 12:55:55 CET 2003


>> fpc 1.1 gives the following error message:
>> overloadedcontructor.pas(36,32) Error: Can't determine which overloaded
>> function to call overloadedcontructor.pas(19,19) Hint: Found
>> declaration: constructor TBase.Create(TComponent)
>> overloadedcontructor.pas(26,23) Hint: Found declaration: constructor
>> TSubClass.Create(TStrings) overloadedcontructor.pas(39) Fatal: There
>> were 1 errors compiling module, stopping
>
> In a way that makes a lot of sense... however it's a symptom of the way
> FPC
> does overloading in objfpc mode. I've no idea why it's broken between 1.0
> and 1.1, I can only think it's related to a missing patch?
>

There was a patch too much. I removed the code inserted to fix tw2725. The
overloading search was also done for class constructors, but that is also
wrong. Now overloading search in parent classes is only triggered by the
overload directive, just like delphi.









More information about the fpc-pascal mailing list