[fpc-pascal] Operator overload bug

Sven Barth pascaldragon at googlemail.com
Sat Aug 4 17:59:35 CEST 2018


On 04.08.2018 17:31, Ben Grasset wrote:
> On Sat, Aug 4, 2018 at 10:38 AM, Sven Barth via fpc-pascal
> <fpc-pascal at lists.freepascal.org
> <mailto:fpc-pascal at lists.freepascal.org>> wrote:
> 
>     On 28.07.2018 16:38, John Doe wrote:
>     > On Mon, Jul 23, 2018 at 1:49 PM, Sven Barth via fpc-pascal
>     > <fpc-pascal at lists.freepascal.org <mailto:fpc-pascal at lists.freepascal.org>
>     > <mailto:fpc-pascal at lists.freepascal.org
>     <mailto:fpc-pascal at lists.freepascal.org>>> wrote:
>     > 
>     >     Ryan Joseph <ryan at thealchemistguild.com <mailto:ryan at thealchemistguild.com>
>     >     <mailto:ryan at thealchemistguild.com
>     <mailto:ryan at thealchemistguild.com>>> schrieb am Mo., 23. Juli 2018,
>     >     17:35:
>     > 
>     > 
>     >         > On Jul 23, 2018, at 12:00 AM, Sven Barth via fpc-pascal <fpc-pascal at lists.freepascal.org <mailto:fpc-pascal at lists.freepascal.org>
>     >         <mailto:fpc-pascal at lists.freepascal.org
>     <mailto:fpc-pascal at lists.freepascal.org>>> wrote:
>     >         > 
>     >         > Yes, it's a bug, so please report it. 
>     > 
>     >         Thanks, reported. The severity is “minor” which I guess is correct.
>     > 
>     > 
>     >     "Minor" is the default severity. We have made the value not editable
>     >     by users, cause they'd more often than not consider their bugs as
>     >     more severe than really severe bugs. 
>     > 
>     >     Regards, 
>     >     Sven 
>     > 
>     > 
>     > Someone posted a working patch for this on the bugtracker report Ryan
>     > made, just to let you know. 
> 
>     Working, yes, complete, no.
> 
>     Nevertheless I fixed the problem in r39554.
> 
>     Regards,
>     Sven
> 
> 
> Would be interested to know what I missed with the patch for future
> reference (and for better understanding of the compiler codebase.)

Your patch would not have worked with any other types that could be used
for an operator overload with an array. Also there would have been
troubles with overloads with sets. Just look at the changes I did and
compare to those you did.

Regards,
Sven




More information about the fpc-pascal mailing list