Waldek Hebisch wrote:
I did some work on updating gpc to newer gcc versions. You can find it at GitHub:
Another issue I found is that in compiler error output, the line number is equal to 0 for most of the errors.
program error (Output);
procedure nonsense; begin xxx; end;
yyy;
begin zzz end.
[P18:~/gpc/testgpc/adriaan] adriaan% gpc error.pas error.pas: In procedure `nonsense': error.pas:0: error: undeclared identifier `xxx' (first use in this routine) error.pas:0: error: (Each undeclared identifier is reported only once error.pas:0: error: for each routine it appears in.) error.pas: At top level: error.pas:9: error: syntax error before `yyy'