Re: [fpc-pascal] Extraneous generic parameters

2021-03-14 Thread Sven Barth via fpc-pascal
Am 14.03.2021 um 19:10 schrieb Ryan Joseph via fpc-pascal: This program compiles, but is it a bug? I would think the specialization should fail because "S" in TArray is not specified. {$mode objfpc} type generic TArray = array of T; generic procedure DoThis(par

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Sven Barth via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Sven Barth via fpc-pascal
Michael Van Canneyt via fpc-pascal schrieb am So., 14. März 2021, 18:03: > > > On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: > > > On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal > > wrote: > > > >> Fixed. Thanks for the patch. > >> There was a second issue, which is now als

[fpc-pascal] Extraneous generic parameters

2021-03-14 Thread Ryan Joseph via fpc-pascal
This program compiles, but is it a bug? I would think the specialization should fail because "S" in TArray is not specified. {$mode objfpc} type generic TArray = array of T; generic procedure DoThis(param: specialize TArray>); begin end; begin specialize DoThis(

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: Fixed. Thanks for the patch. There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2 fixes

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 4:15 PM Michael Van Canneyt via fpc-pascal wrote: > Fixed. Thanks for the patch. > There was a second issue, which is now also fixed. You set target to fpc 4.0 The simple patch I made can be backported/merged to 3.2 fixes branch? -- Bart ___

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. Fixed. Thanks for the patch. There was a second issue, wh

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Michael Van Canneyt via fpc-pascal
On Sun, 14 Mar 2021, Bart via fpc-pascal wrote: On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > Do I misunderstand the purpose of this function or is this a bug? Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 2:55 PM Bart wrote: > I think I have a fix, will report it. Reported as https://bugs.freepascal.org/view.php?id=38622 Possible patch attached in the bugreport. -- Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.or

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 1:49 PM Bart wrote: > Do you know if we have a test suite for this function, so I can test > if there ar regressions when I try to fix it? Found it already. I think I have a fix, will report it. -- Bart ___ fpc-pascal maillis

Re: [fpc-pascal] JSONStringToString question

2021-03-14 Thread Bart via fpc-pascal
On Sun, Mar 14, 2021 at 12:43 AM Michael Van Canneyt via fpc-pascal wrote: > > Do I misunderstand the purpose of this function or is this a bug? > > Seems like a bug. I'll report it then. Do you know if we have a test suite for this function, so I can test if there ar regressions when I try to f