Re: [fpc-devel] FPC fails on overload

2018-06-19 Thread J. Gareth Moreton
Oh whoops. My mistake. On Tue 19/06/18 06:18 , Sven Barth via fpc-devel fpc-devel@lists.freepascal.org sent: > Am 19.06.2018 um 02:47 schrieb J. Gareth Moreton: > Technically it's a regression because it worked fine before and it > breaks now.  However, I do agree... how should a string liter

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Sven Barth via fpc-devel
Am 19.06.2018 um 02:47 schrieb J. Gareth Moreton: Technically it's a regression because it worked fine before and it breaks now.  However, I do agree... how should a string literal be interpreted? Technically either a WideString or UnicodeString is correct, so the compiler cannot decide between

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread J. Gareth Moreton
Technically it's a regression because it worked fine before and it breaks now.  However, I do agree... how should a string literal be interpreted? Technically either a WideString or UnicodeString is correct, so the compiler cannot decide between them or even know what the best fit is. Gareth O

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Marcos Douglas B. Santos
On Mon, Jun 18, 2018 at 5:01 PM, Florian Klämpfl wrote: > Am 18.06.2018 um 22:00 schrieb David Jenkins: >> >> This is something that has just recently stopped working for us(with >> update >> to current trunk). We previously were using trunk rev 36812 with no >> problems. > > > Please submit a bu

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread David Jenkins
Done.  Mantis 33875. On 6/18/18 3:01 PM, Florian Klämpfl wrote: Am 18.06.2018 um 22:00 schrieb David Jenkins: This is something that has just recently stopped working for us(with update to current trunk).  We previously were using trunk rev 36812 with no problems. Please submit a bug report

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Florian Klämpfl
Am 18.06.2018 um 22:00 schrieb David Jenkins: This is something that has just recently stopped working for us(with update to current trunk).  We previously were using trunk rev 36812 with no problems. Please submit a bug report to mantis. ___ fpc-deve

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread David Jenkins
This is something that has just recently stopped working for us(with update to current trunk). We previously were using trunk rev 36812 with no problems. Placing a second call foo('a') calls the expected WideChar version. David On 6/18/18 1:11 PM, Marcos Douglas B. Santos wrote: On Mon, J

Re: [fpc-devel] FPC fails on overload

2018-06-18 Thread Marcos Douglas B. Santos
On Mon, Jun 18, 2018 at 3:04 PM, David Jenkins wrote: > The following code: > > > {$MODE DELPHI} > > program CharOverload; > > uses > SysUtils; > > procedure Foo(const aArg: UnicodeString); overload; > begin > WriteLn('WideString: ', aArg); > end; > > procedure Foo(c: WideChar); overload; > be

[fpc-devel] FPC fails on overload

2018-06-18 Thread David Jenkins
The following code: {$MODE DELPHI} program CharOverload; uses   SysUtils; procedure Foo(const aArg: UnicodeString); overload; begin   WriteLn('WideString: ', aArg); end; procedure Foo(c: WideChar); overload; begin   WriteLn('Char: ', c); end; begin   Foo('abc'); end. Fails with current tr