[fpc-pascal] Different behaviour between FPC 2.6.4 and FPC 3.0.4

Rainer Stratmann rainerstratmann at t-online.de
Tue May 5 22:05:27 CEST 2020


Compiled with FPC 3.0.4 there is an access violation when executing procvar; 
Compiled with FPC 2.6.4 it works for a long time.

Did I overlooked something?

Mode: MObjFPC

type
 t_funcboolean = function : boolean;
var
 procvar : t_funcboolean;

function proc_bool : t_funcboolean;
begin
end;

begin
 procvar := proc_bool;
 procvar; // -> access violation with FPC 3.0.4






More information about the fpc-pascal mailing list