Re: [fpc-pascal] Internal error 2019022201 from function reference

2022-09-16 Thread Hairy Pixels via fpc-pascal


> On Sep 11, 2022, at 4:22 PM, Sven Barth  wrote:
> 
> Why do you think it's not known if there is an internal error? Internal 
> errors are precisely there to cover cases that should not be taken, but are 
> then triggered by some code path that was not thought about. 
> As a general rule: always report an internal error if it wasn't reported 
> already. If it was then check whether you can  maybe provide a better example 
> to reproduce it. 
> 

I see you fixed this already, thanks Sven!

Here’s another internal error I found. 
https://gitlab.com/freepascal.org/fpc/source/-/issues/39907. Is this fixable? 
It’s kind of substandard thing to redefine TObject but it’s related to units 
again so it may be systemic.

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] Internal error 2019022201 from function reference

2022-09-11 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal  schrieb am
Fr., 9. Sep. 2022, 18:05:

> This program gives internal compiler error 2019022201 (Free Pascal
> Compiler version 3.3.1 [2022/05/27] for aarch64). Something is wrong with
> the PPU. This is a very basic program using function references so  it
> seems unlikely it could not be known. Any ideas?
>

Why do you think it's not known if there is an internal error? Internal
errors are precisely there to cover cases that should not be taken, but are
then triggered by some code path that was not thought about.
As a general rule: always report an internal error if it wasn't reported
already. If it was then check whether you can  maybe provide a better
example to reproduce it.

Regards,
Sven
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal


[fpc-pascal] Internal error 2019022201 from function reference

2022-09-09 Thread Hairy Pixels via fpc-pascal
This program gives internal compiler error 2019022201 (Free Pascal Compiler 
version 3.3.1 [2022/05/27] for aarch64). Something is wrong with the PPU. This 
is a very basic program using function references so  it seems unlikely it 
could not be known. Any ideas?



{$mode objfpc}
{$modeswitch functionreferences}

unit function_ref_error;
interface

type
  TCallback = record
proc: reference to procedure;
  end;

implementation

end.

Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal