Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)y

2021-01-05 Thread Pascal Riekenberg via fpc-devel
> Michael Van Canneyt hat am 05.01.2021 10:23 > geschrieben: > > > On Tue, 5 Jan 2021, Pascal Riekenberg via fpc-devel wrote: > > >> Michael Van Canneyt via fpc-devel hat am > >> 05.01.2021 09:15 geschrieben: > >> > >> > >> I did a small test, your program compiles with the trunk compiler

Re: [fpc-devel] Generics-related compilation issue

2021-01-05 Thread Bart via fpc-devel
I filed a bugreport: https://bugs.freepascal.org/view.php?id=38309 -- Bart ___ fpc-devel maillist - fpc-devel@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Werner Pamler via fpc-devel
Am 05.01.2021 um 08:55 schrieb Pascal Riekenberg via fpc-devel: Since i updated my local fpc trunk some of my programs do not compile anymore. Version from before christmas was okay. The compiler can't find the function "IfThen(AValue: Boolean; const ATrue: string; const AFalse: string): strin

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)y

2021-01-05 Thread Michael Van Canneyt via fpc-devel
On Tue, 5 Jan 2021, Pascal Riekenberg via fpc-devel wrote: Michael Van Canneyt via fpc-devel hat am 05.01.2021 09:15 geschrieben: I did a small test, your program compiles with the trunk compiler ? No, only if you put StrUtils at the end of the uses list. And I checked, the math IfThen

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Pascal Riekenberg via fpc-devel
> Michael Van Canneyt via fpc-devel hat am > 05.01.2021 09:15 geschrieben: > > > I did a small test, your program compiles with the trunk compiler ? No, only if you put StrUtils at the end of the uses list. > And I checked, the math IfThen() functions have overload attached. Both units have

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Michael Van Canneyt via fpc-devel
I did a small test, your program compiles with the trunk compiler ? And I checked, the math IfThen() functions have overload attached. What compiler did you use ? Michael. On Tue, 5 Jan 2021, Michael Van Canneyt via fpc-devel wrote: The ones in math must be marked with overload. Then the co

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Michael Van Canneyt via fpc-devel
The ones in math must be marked with overload. Then the compiler will continue to search. Michael. On Tue, 5 Jan 2021, Pascal Riekenberg via fpc-devel wrote: Please find a simple test project attached Note: If you put the StrUtils at the end of the uses list the program compiles. Pascal

Re: [fpc-devel] compiler has problem finding right function: IfThen (Math vs. StrUtils)

2021-01-05 Thread Pascal Riekenberg via fpc-devel
Please find a simple test project attached Note: If you put the StrUtils at the end of the uses list the program compiles. Pascal > Pascal Riekenberg via fpc-devel hat am > 05.01.2021 08:55 geschrieben: > > > Since i updated my local fpc trunk some of my programs do not compile > a