On Thu, 30 Oct 2003 12:55:55 +0100 (CET) "Peter Vreman" <[EMAIL PROTECTED]> wrote:
> >> 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. Peter, did you commit your changes? I just tried and cycled a new compiler etc, but the test program still errors out. Vincent. _______________________________________________ fpc-pascal maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-pascal