Prof A Olowofoyeku (The African Chief) wrote:
Hi
This program fails to compile under '--borland-pascal' and '--delphi':
program delphibug; {$delphi} { fails } {$borland-pascal} { so does this } CONST foo = 'PK'#5#6; { this is the offending line } begin Writeln ('OK'); end.
This is the error I get (with gpc-20030830): "delphibug.pas:4: error: string concatenation without `Concat' or `+' is an extension delphibug.pas:4: error: of GNU Pascal"
This error should not happen. If you remove the embedded condititionals, the program compiles fine both under BP and all versions of Delphi.
Yes. Will fix it later. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: 51FF C1F0 1A77 C6C2 4482 4DDC 117A 9773 7F88 1707