Hi
I just intalled gpc 2.1 on top of gcc 2.95.3 (all on slightly updated RedHat 7.0). When I type:
gpc --interface-only tp.pp
I get gpc: Internal compiler error: program gpc1 got fatal signal 11
The content of tp.pp is:
program tp; begin end.
It looks that compiler crashes when there is no interface in the file (I found it on much bigger files, and with lot of other options). The problem also appears in older version of gpc on another machine.
The manual says that gpc 2.1 accepts nested comments but when I try
gpc --nested-comments nn.pas
with nn.pas beeing
program nn; (* Can NOT compile with --nested-comments *) begin (* (* *) *) end.
the compiler complains about '*'
The following ugly syntax (taken from FPC sources :) is not accepted even in Borland Pascal mode (supposedly BP compiles the code):
unit ttt; interface function foo(const s : string) : integer; implementation function foo(const s : string) : integer; var i,j:integer; begin for i:=1to 5 do j:=j+1; foo := j; end; end.
The compiler complines about 'nondigits in number whose radix <= 10' in the line containing 'for' and then cannot find 'to' or 'downto'.
Finally, the manual claims that all one-letter switches in BP are supported, but (again in FPC source) R switch (range check) is not recognized and compilation is aborted on
{$ifopt R+}