Using:
gpc version 20030507, based on gcc-3.2.3 (mingw special 20030504-1)
configured as "i486-pc-mingw32" and running under Windows NT 4.0, the
"widget_module" example from section 6.4.2.5 of the EP manual fails to
compile, as follows:
D:\test>gpc --extended-pascal -c widget.pas
widget.pas:37: result types in forward declared functions are an extension
widget.pas:37: of UCSD Pascal, Borland Pascal, traditional Macintosh
widget.pas:37: Pascal
The following simplified example exhibits the same behavior:
module modbug;
export i = (e);
function e (v : integer) : integer;
end;
function e;
begin
e := 1
end;
end.
Compiling produces:
D:\test>gpc --extended-pascal -c modbug.pas
modbug.pas:12: result types in forward declared functions are an extension
modbug.pas:12: of UCSD Pascal, Borland Pascal, traditional Macintosh
modbug.pas:12: Pascal
I do not have a gpc-20030930 implementation to check this against.
-- Dave